@@ -517,31 +517,43 @@ namespace RTE {
517517 // / first, g_NoMOID will be returned.
518518 // / @param start The starting position.
519519 // / @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)
521521 // / @param ignoreTeam To enable ignoring of all MOIDs associated with an object of a specific (default: Activity::NoTeam)
522522 // / team which also has team ignoring enabled itself.
523523 // / @param ignoreMaterial A specific material ID to ignore hits with. (default: 0)
524524 // / @param ignoreAllTerrain Whether to ignore all terrain hits or not. (default: false)
525525 // / @param skip For every pixel checked along the line, how many to skip between them (default: 0)
526526 // / for optimization reasons. 0 = every pixel is checked.
527527 // / @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 );
529529
530530 // / Traces along a vector and returns MOID of the first non-ignored
531531 // / non-NoMOID MO encountered. If a non-air terrain pixel is encountered
532532 // / first, g_NoMOID will be returned.
533533 // / @param start The starting position.
534534 // / @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)
536536 // / @param ignoreTeam To enable ignoring of all MOIDs associated with an object of a specific (default: Activity::NoTeam)
537537 // / team which also has team ignoring enabled itself.
538538 // / @param ignoreMaterial A specific material ID to ignore hits with. (default: 0)
539539 // / @param ignoreAllTerrain Whether to ignore all terrain hits or not. (default: false)
540540 // / @param skip For every pixel checked along the line, how many to skip between them (default: 0)
541541 // / for optimization reasons. 0 = every pixel is checked.
542542 // / @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 );
544544
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+
545557 // / Traces along a vector and returns the length of how far the trace went
546558 // / without hitting any non-ignored terrain material or MOID at all.
547559 // / @param start The starting position.
0 commit comments