Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

cr: more registration framework

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.