- Timestamp:
- May 28, 2006, 9:37:55 PM (18 years ago)
- Location:
- branches/cr/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/Makefile.am
r7927 r7933 10 10 11 11 noinst_HEADERS = cr_engine.h \ 12 12 collision_handle.h 13 13 -
branches/cr/src/lib/collision_reaction/collision_handle.cc
r7932 r7933 61 61 this->targetList.push_back(classID); 62 62 } 63 64 65 /** 66 * this is the function to be called on a collision event for this handle 67 * @param collision the collision objects containing all collision informations 68 */ 69 void CollisionHandle::registerCollision(Collision* collision) 70 { 71 this->collisionList.push_back(collision); 72 } 73 74 -
branches/cr/src/lib/collision_reaction/cr_engine.cc
r7932 r7933 55 55 56 56 57 void CREngine::debug() 58 { 59 60 } -
branches/cr/src/lib/collision_reaction/cr_engine.h
r7932 r7933 55 55 56 56 57 void debug(); 58 57 59 private: 58 60 CREngine(void); -
branches/cr/src/world_entities/world_entity.cc
r7932 r7933 34 34 #include "cr_engine.h" 35 35 #include "collision_handle.h" 36 37 #include <stdarg.h> 36 38 37 39 … … 239 241 * @param ... the targets as classIDs 240 242 */ 241 void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, ...)243 void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, long target...) 242 244 { 243 245 … … 245 247 246 248 va_list itemlist; 247 va_start (itemlist, CREngine::CRType);249 va_start (itemlist, target); 248 250 for (int i = 0; i < nrOfTargets; i++) 249 this->collisionHandles[type] .push_back(va_arg(itemlist, long));251 this->collisionHandles[type]->addTarget(va_arg(itemlist, long)); 250 252 va_end(itemlist); 251 253 } -
branches/cr/src/world_entities/world_entity.h
r7932 r7933 15 15 #include "glincl.h" 16 16 #include <vector> 17 #include <stdarg.h> 17 18 18 19 19 … … 68 68 69 69 /* --- Collision Reaction Block --- */ 70 void subscribeReaction(CREngine::CRType type, int nrOfTargets, ...);70 void subscribeReaction(CREngine::CRType type, int nrOfTargets, long target, ...); 71 71 72 72
Note: See TracChangeset
for help on using the changeset viewer.