Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9939 in orxonox.OLD for branches/coll_rect/src/world_entities


Ignore:
Timestamp:
Nov 20, 2006, 12:53:27 AM (18 years ago)
Author:
patrick
Message:

removed some comilation problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/world_entities/world_entity.h

    r9896 r9939  
    8888  void unsubscribeReactions();
    8989
     90  inline bool isSubscribed(CoRe::CREngine::ReactionType type) const { return this->_collisionFilter.isSubscribed( type); }
     91
    9092  /** @return true if there is at least on collision reaction subscribed */
    9193  inline bool isReactive() const { return this->bReactive; }
    92 
    93   const CoRe::CollisionFilter& getCollisionFilter(CoRe::CREngine::ReactionType type) const { return this->collisionFilter; }
     94  inline bool isReactive( const WorldEntity& worldEntity) const { return this->isReactive() || (this->_collisionFilter(worldEntity)); }
     95
     96  const CoRe::CollisionFilter& getCollisionFilter(CoRe::CREngine::ReactionType type) const { return this->_collisionFilter; }
    9497
    9598  /** @returns true if this entity is standing on ground (BSP model) */
     
    191194
    192195  /* collision reaction stuff */
    193   CoRe::CollisionFilter   collisionFilter;                 //!< filter for collision event filtering (not every entity listens to all collisions)
     196  CoRe::CollisionFilter   _collisionFilter;                //!< filter for collision event filtering (not every entity listens to all collisions)
    194197  bool                    bReactive;                       //!< true if there is at least one collision reaction subscibed
    195198
Note: See TracChangeset for help on using the changeset viewer.