Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7933 in orxonox.OLD for branches/cr/src/world_entities


Ignore:
Timestamp:
May 28, 2006, 9:37:55 PM (18 years ago)
Author:
patrick
Message:

cr: more registration framework

Location:
branches/cr/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/world_entities/world_entity.cc

    r7932 r7933  
    3434#include "cr_engine.h"
    3535#include "collision_handle.h"
     36
     37#include <stdarg.h>
    3638
    3739
     
    239241 *  @param ... the targets as classIDs
    240242 */
    241 void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, ...)
     243void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, long target...)
    242244{
    243245
     
    245247
    246248  va_list itemlist;
    247   va_start (itemlist, CREngine::CRType);
     249  va_start (itemlist, target);
    248250  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));
    250252  va_end(itemlist);
    251253}
  • branches/cr/src/world_entities/world_entity.h

    r7932 r7933  
    1515#include "glincl.h"
    1616#include <vector>
    17 #include <stdarg.h>
     17
    1818
    1919
     
    6868
    6969  /* --- Collision Reaction Block --- */
    70   void subscribeReaction(CREngine::CRType type, int nrOfTargets, ...);
     70  void subscribeReaction(CREngine::CRType type, int nrOfTargets, long target, ...);
    7171
    7272
Note: See TracChangeset for help on using the changeset viewer.