Changeset 10010 in orxonox.OLD for branches/coll_rect.merge/src/lib/collision_reaction/collision.cc
- Timestamp:
- Dec 4, 2006, 4:39:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/coll_rect.merge/src/lib/collision_reaction/collision.cc
r9869 r10010 19 19 #include "debug.h" 20 20 21 /** 22 * standard constructor 23 */ 24 Collision::Collision () 21 namespace CoRe 25 22 { 26 this->flushCollisionEvents(); 27 } 23 24 /** 25 * standard constructor 26 */ 27 Collision::Collision () 28 { 29 this->reset(); 30 } 28 31 29 32 30 /** 31 * standard deconstructor 32 */ 33 Collision::~Collision () 34 { 35 } 33 /** 34 * standard deconstructor 35 */ 36 Collision::~Collision () 37 {} 36 38 37 39 38 /**39 * flushes the CollisionEvent list40 */41 void Collision::flushCollisionEvents()42 {43 this->entityA = NULL;44 this->entityB = NULL;40 /** 41 * resets all variable states to initial values 42 */ 43 void Collision::reset() 44 { 45 this->_entityA = NULL; 46 this->_entityB = NULL; 45 47 46 this->entityACollide = false;47 this->entityBCollide = false;48 this->_entityACollide = false; 49 this->_entityBCollide = false; 48 50 49 this->bDispatched = true; 51 this->_collisionEvents.clear(); 52 } 50 53 51 this->collisionEvents.clear();52 54 } 53
Note: See TracChangeset
for help on using the changeset viewer.