Changeset 9988 in orxonox.OLD for branches/coll_rect/src/world_entities/world_entity.h
- Timestamp:
- Dec 3, 2006, 4:55:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect/src/world_entities/world_entity.h
r9986 r9988 88 88 void unsubscribeReactions(); 89 89 90 inline bool isSubscribed(CoRe::CREngine::ReactionType type) const { return this->_collisionFilter.isSubscribed( type); }91 92 90 /** @return true if there is at least on collision reaction subscribed */ 93 inline bool isReactive() const { return this-> bReactive; }91 inline bool isReactive() const { return this->_collisionFilter.isReactive(); } 94 92 95 93 /** @param worldEntity the world entity to be checked @returns true if there is a collisionreaction registered for the worldEntity */ 96 inline bool isReactive( const WorldEntity& worldEntity) const { return this-> isReactive() || (this->_collisionFilter(worldEntity)); }94 inline bool isReactive( const WorldEntity& worldEntity) const { return this->_collisionFilter.isReactive() || (this->_collisionFilter(worldEntity)); } 97 95 /** @param worldEntity the world entity to be checked @param type special reaction type @returns true if collision reaction reg. */ 98 inline bool isReactive( const WorldEntity& worldEntity, CoRe::CREngine::ReactionTypetype) const99 { return this-> isReactive() || (this->_collisionFilter(worldEntity, type)); }96 inline bool isReactive( const WorldEntity& worldEntity, const CoRe::CREngine::ReactionType& type) const 97 { return this->_collisionFilter.isReactive() || (this->_collisionFilter(worldEntity, type)); } 100 98 101 99 … … 103 101 104 102 /** @returns true if this entity is standing on ground (BSP model) */ 105 bool isOnGround() const { return this-> bOnGround; }103 bool isOnGround() const { return this->_bOnGround; } 106 104 /** @param flag: marks if this entity is standing on ground */ 107 void setOnGround(bool flag) { this-> bOnGround = flag; }105 void setOnGround(bool flag) { this->_bOnGround = flag; } 108 106 109 107 virtual void destroy( WorldEntity* killer ); … … 201 199 /* collision reaction stuff */ 202 200 CoRe::CollisionFilter _collisionFilter; //!< filter for collision event filtering (not every entity listens to all collisions) 203 bool bReactive; //!< true if there is at least one collision reaction subscibed 204 201 bool _bOnGround; //!< flag true if the object is on the ground 205 202 206 203 PhysicsInterface physicsInterface; //!< the physics object of the WorldEntity 207 bool bOnGround; //!< true if this entity is standing on the ground208 204 209 205 /* network help structures */
Note: See TracChangeset
for help on using the changeset viewer.