Changeset 7933 in orxonox.OLD for branches/cr/src/world_entities
- Timestamp:
- May 28, 2006, 9:37:55 PM (19 years ago)
- Location:
- branches/cr/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.