Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7841 in orxonox.OLD for trunk/src/lib/collision_reaction


Ignore:
Timestamp:
May 24, 2006, 11:07:38 PM (19 years ago)
Author:
patrick
Message:

trunk: collision handle introduced and other stuff

Location:
trunk/src/lib/collision_reaction
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_reaction/cr_engine.cc

    r7819 r7841  
    4343  CREngine::singletonRef = NULL;
    4444}
     45
     46
     47
     48CollisionHandle* CREngine::subscribeReaction(WorldEntity* worldEntity, CRType type, int nrOfTargets, ...)
     49{
     50#if 0
     51  va_list itemlist;
     52  va_start (itemlist, type);
     53  for (int i = 0; i < faceElemCount; i++)
     54    this->targetList.push_back(va_arg(itemlist, int));
     55  va_end(itemlist);
     56#endif
     57}
     58
     59
     60
  • trunk/src/lib/collision_reaction/cr_engine.h

    r7839 r7841  
    3636  inline static CREngine* getInstance(void) { if (!singletonRef) singletonRef = new CREngine();  return singletonRef; };
    3737
    38 
    39   CollisionHandle* subscribeReaction(WorldEntity* worldEntity, ClassId targets, CRType type);
     38#if 0
     39  CollisionHandle* subscribeReaction(WorldEntity* worldEntity, CRType type, int nrOfTargets, ...);
    4040
    4141  bool unsubscribeReaction(WorldEntity* worldEntity);
    4242  bool unsubscribeReaction(CollisionHandle* collisionHandle);
    4343
     44
     45  void handleCollisions();
    4446
    4547  /** @returns an instance to a collision object. instead of creating new object this ones can be resycled */
     
    5557  std::vector<CollisionHandle*>       collisionHandles;         //!< list with the collision handles
    5658  std::vector<Collision*>             cachedCollisions;         //!< a list of unused, cached collision events
     59#endif
    5760};
    5861
Note: See TracChangeset for help on using the changeset viewer.