Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7989 in orxonox.OLD for branches/cr/src/lib/collision_reaction


Ignore:
Timestamp:
May 30, 2006, 7:23:23 PM (19 years ago)
Author:
patrick
Message:

cr: other interface, no stdarg

Location:
branches/cr/src/lib/collision_reaction
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/collision_handle.cc

    r7973 r7989  
    3434  this->owner = owner;
    3535  this->type = type;
    36 
    37   this->targetList.clear();
    3836}
    3937
     
    6058 *  @param classID the classid to look for
    6159 */
    62 void CollisionHandle::addTarget(long classID)
     60void CollisionHandle::addTarget(long target)
    6361{
    64   printf("addTarget: %i this is target nr %i\n", classID, this->targetList.size());
     62  PRINTF(0)("addTarget: %i \n", target);
    6563  // make sure there is no dublicate
    6664//   for(int i = 0; i < this->targetList.size(); ++i)
     
    7371//       return;
    7472
     73
    7574  // add element
    76   this->targetList.push_back(classID);
     75  this->targetList.push_back(target);
    7776}
    7877
  • branches/cr/src/lib/collision_reaction/collision_handle.h

    r7967 r7989  
    1111
    1212#include <vector>
     13#include <list>
    1314
    1415
     
    2829    void reset();
    2930
    30     void addTarget(long classID);
     31    void addTarget(long target);
    3132    Collision* registerCollision(WorldEntity* entityA, WorldEntity* entityB);
    3233    void registerCollisionEvent(CollisionEvent* collisionEvent);
Note: See TracChangeset for help on using the changeset viewer.