Changeset 7989 in orxonox.OLD for branches/cr/src/lib/collision_reaction
- Timestamp:
- May 30, 2006, 7:23:23 PM (19 years ago)
- Location:
- branches/cr/src/lib/collision_reaction
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/collision_handle.cc
r7973 r7989 34 34 this->owner = owner; 35 35 this->type = type; 36 37 this->targetList.clear();38 36 } 39 37 … … 60 58 * @param classID the classid to look for 61 59 */ 62 void CollisionHandle::addTarget(long classID)60 void CollisionHandle::addTarget(long target) 63 61 { 64 printf("addTarget: %i this is target nr %i\n", classID, this->targetList.size());62 PRINTF(0)("addTarget: %i \n", target); 65 63 // make sure there is no dublicate 66 64 // for(int i = 0; i < this->targetList.size(); ++i) … … 73 71 // return; 74 72 73 75 74 // add element 76 this->targetList.push_back( classID);75 this->targetList.push_back(target); 77 76 } 78 77 -
branches/cr/src/lib/collision_reaction/collision_handle.h
r7967 r7989 11 11 12 12 #include <vector> 13 #include <list> 13 14 14 15 … … 28 29 void reset(); 29 30 30 void addTarget(long classID);31 void addTarget(long target); 31 32 Collision* registerCollision(WorldEntity* entityA, WorldEntity* entityB); 32 33 void registerCollisionEvent(CollisionEvent* collisionEvent);
Note: See TracChangeset
for help on using the changeset viewer.