Changeset 9939 in orxonox.OLD for branches/coll_rect/src/world_entities
- Timestamp:
- Nov 20, 2006, 12:53:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/world_entities/world_entity.h
r9896 r9939 88 88 void unsubscribeReactions(); 89 89 90 inline bool isSubscribed(CoRe::CREngine::ReactionType type) const { return this->_collisionFilter.isSubscribed( type); } 91 90 92 /** @return true if there is at least on collision reaction subscribed */ 91 93 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; } 94 97 95 98 /** @returns true if this entity is standing on ground (BSP model) */ … … 191 194 192 195 /* 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) 194 197 bool bReactive; //!< true if there is at least one collision reaction subscibed 195 198
Note: See TracChangeset
for help on using the changeset viewer.