@@ -517,31 +517,43 @@ namespace RTE {
517
517
// / first, g_NoMOID will be returned.
518
518
// / @param start The starting position.
519
519
// / @param ray The vector to trace along.
520
- // / @param ignoredMOIDs A vector of MOIDs to ignore. Any child MO's of this MOID will also be ignored. (default: g_NoMOID)
520
+ // / @param ignoreMOIDs A vector of MOIDs to ignore. Any child MO's of this MOID will also be ignored. (default: g_NoMOID)
521
521
// / @param ignoreTeam To enable ignoring of all MOIDs associated with an object of a specific (default: Activity::NoTeam)
522
522
// / team which also has team ignoring enabled itself.
523
523
// / @param ignoreMaterial A specific material ID to ignore hits with. (default: 0)
524
524
// / @param ignoreAllTerrain Whether to ignore all terrain hits or not. (default: false)
525
525
// / @param skip For every pixel checked along the line, how many to skip between them (default: 0)
526
526
// / for optimization reasons. 0 = every pixel is checked.
527
527
// / @return The MOID of the hit non-ignored MO, or g_NoMOID if terrain or no MO was hit.
528
- static MOID CastMORay1 (SceneMan& sceneMan, const Vector& start, const Vector& ray, const luabind::object& ignoredMOIDs , int ignoreTeam = Activity::NoTeam, unsigned char ignoreMaterial = 0 , bool ignoreAllTerrain = false , int skip = 0 );
528
+ static MOID CastMORay1 (SceneMan& sceneMan, const Vector& start, const Vector& ray, const luabind::object& ignoreMOIDs , int ignoreTeam = Activity::NoTeam, unsigned char ignoreMaterial = 0 , bool ignoreAllTerrain = false , int skip = 0 );
529
529
530
530
// / Traces along a vector and returns MOID of the first non-ignored
531
531
// / non-NoMOID MO encountered. If a non-air terrain pixel is encountered
532
532
// / first, g_NoMOID will be returned.
533
533
// / @param start The starting position.
534
534
// / @param ray The vector to trace along.
535
- // / @param ignoredMOID An MOID to ignore. Any child MO's of this MOID will also be ignored. (default: g_NoMOID)
535
+ // / @param ignoreMOID An MOID to ignore. Any child MO's of this MOID will also be ignored. (default: g_NoMOID)
536
536
// / @param ignoreTeam To enable ignoring of all MOIDs associated with an object of a specific (default: Activity::NoTeam)
537
537
// / team which also has team ignoring enabled itself.
538
538
// / @param ignoreMaterial A specific material ID to ignore hits with. (default: 0)
539
539
// / @param ignoreAllTerrain Whether to ignore all terrain hits or not. (default: false)
540
540
// / @param skip For every pixel checked along the line, how many to skip between them (default: 0)
541
541
// / for optimization reasons. 0 = every pixel is checked.
542
542
// / @return The MOID of the hit non-ignored MO, or g_NoMOID if terrain or no MO was hit.
543
- static MOID CastMORay2 (SceneMan& sceneMan, const Vector& start, const Vector& ray, MOID ignoredMOID = g_NoMOID, int ignoreTeam = Activity::NoTeam, unsigned char ignoreMaterial = 0 , bool ignoreAllTerrain = false , int skip = 0 );
543
+ static MOID CastMORay2 (SceneMan& sceneMan, const Vector& start, const Vector& ray, MOID ignoreMOID = g_NoMOID, int ignoreTeam = Activity::NoTeam, unsigned char ignoreMaterial = 0 , bool ignoreAllTerrain = false , int skip = 0 );
544
544
545
+ // / Traces along a vector and returns a vector of all MOs encountered.
546
+ // / @param start The starting position.
547
+ // / @param ray The vector to trace along.
548
+ // / @param ignoreMOIDs A vector of MOIDs to ignore. Any child MOs of an MOID will also be ignored. (default: g_NoMOID)
549
+ // / @param ignoreTeam To enable ignoring of all MOIDs associated with an object of a specific team (default: Activity::NoTeam)
550
+ // / @param ignoreMaterial A specific material ID to ignore hits with. (default: 0)
551
+ // / @param ignoreAllTerrain Whether to ignore all terrain hits or not. (default: false)
552
+ // / @param skip For every pixel checked along the line, how many to skip between them (default: 0)
553
+ // / for optimization reasons. 0 = every pixel is checked.
554
+ // / @return A vector of pointers to all MovableObjects met along the ray, who aren't ignored.
555
+ static const std::vector<MovableObject*>* CastAllMOsRay (SceneMan& sceneMan, const Vector& start, const Vector& ray, const luabind::object& ignoreMOIDs, int ignoreTeam = Activity::NoTeam, unsigned char ignoreMaterial = 0 , bool ignoreAllTerrain = false , int skip = 0 );
556
+
545
557
// / Traces along a vector and returns the length of how far the trace went
546
558
// / without hitting any non-ignored terrain material or MOID at all.
547
559
// / @param start The starting position.
0 commit comments