Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

cr: reaction subscription stuff

File:
1 edited

Legend:

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

    r7927 r7932  
    6969
    7070  this->toList(OM_NULL);
    71 
    72   //this->collisionHandles = new *CollisionHandle[CREngine::CR_NUMBER]();
    7371}
    7472
     
    242240 */
    243241void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, ...)
    244 {}
     242{
     243
     244  this->collisionHandles[type] = CREngine::getInstance()->subscribeReaction(this, type);
     245
     246  va_list itemlist;
     247  va_start (itemlist, CREngine::CRType);
     248  for (int i = 0; i < nrOfTargets; i++)
     249    this->collisionHandles[type].push_back(va_arg(itemlist, long));
     250  va_end(itemlist);
     251}
    245252
    246253
Note: See TracChangeset for help on using the changeset viewer.