Changeset 8108 in orxonox.OLD for branches/cr/src/lib/collision_reaction/collision.h
- Timestamp:
- Jun 1, 2006, 11:14:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/collision.h
r8106 r8108 31 31 inline WorldEntity* getEntityB() const { return this->entityB; } 32 32 /** @return true if Entity A collides */ 33 inline bool isEntityACollide() { return this->entityACollide; } 33 inline bool isEntityACollide() const { return this->entityACollide; } 34 /** sets the flag if it reacts @param flag true if it should react on entityA*/ 35 inline void setEntityACollide(bool flag) { this->entityACollide = flag; } 34 36 /** @return true if Entity B collides */ 35 inline bool isEntityBCollide() { return this->entityBCollide; } 37 inline bool isEntityBCollide() const { return this->entityBCollide; } 38 /** sets the flag if it reacts @param flag true if it should react on entityB*/ 39 inline void setEntityBCollide(bool flag) { this->entityACollide = flag; } 36 40 37 41 /** @returns true if this Collision has already been dispatched */ … … 39 43 40 44 /** registers a @param event CollisionEvent to take place */ 41 inline void registerCollisionEvent(CollisionEvent* event) { this->collisionEvents.push_back(event); }45 inline void registerCollisionEvent(CollisionEvent* event) { this->collisionEvents.push_back(event); this->bDispatched = false;} 42 46 /** @returns a vector of collision events */ 43 47 inline const std::vector<CollisionEvent*>& getCollisionEvents() const { return this->collisionEvents; } 44 45 48 46 49
Note: See TracChangeset
for help on using the changeset viewer.