Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7865 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
May 25, 2006, 11:29:55 PM (19 years ago)
Author:
patrick
Message:

trunk: removed compiler error

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

Legend:

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

    r7842 r7865  
    4646
    4747
    48 #if 0
     48
    4949CollisionHandle* CREngine::subscribeReaction(WorldEntity* worldEntity, CRType type, int nrOfTargets, ...)
    5050{
    5151  va_list itemlist;
    5252  va_start (itemlist, type);
    53   for (int i = 0; i < faceElemCount; i++)
     53  for (int i = 0; i < nrOfTargets; i++)
    5454    this->targetList.push_back(va_arg(itemlist, int));
    5555  va_end(itemlist);
    5656}
    57 #endif
    5857
    5958
    6059
     60
  • trunk/src/lib/collision_reaction/cr_engine.h

    r7843 r7865  
    88
    99#include "base_object.h"
     10#include <stdarg.h>
     11#include <vector>
    1012
    1113// FORWARD DECLARATION
    1214class CollisionHandle;
    1315class Collision;
     16class WorldEntity;
    1417
    1518//! A default singleton class.
    1619class CREngine : public BaseObject
    1720{
    18 #if 0
     21
    1922  typedef enum CRType {
    2023    CR_CONSERVATION_OF_MOMENTUM   = 0,
     
    2932    CR_NUMBER
    3033  };
    31 #endif
     34
    3235
    3336public:
     
    3639  inline static CREngine* getInstance(void) { if (!singletonRef) singletonRef = new CREngine();  return singletonRef; };
    3740
    38 #if 0
     41
    3942  CollisionHandle* subscribeReaction(WorldEntity* worldEntity, CRType type, int nrOfTargets, ...);
    4043
     
    5255
    5356private:
     57  CREngine(void);
    5458
     59private:
    5560  std::vector<CollisionHandle*>       collisionHandles;         //!< list with the collision handles
    5661  std::vector<Collision*>             cachedCollisions;         //!< a list of unused, cached collision events
    57 #endif
    58 private:
    59   CREngine(void);
     62  std::vector<int>                    targetList;
     63
    6064  static CREngine*                    singletonRef;             //!< the reference to the CREngine object (singleton)
    6165};
Note: See TracChangeset for help on using the changeset viewer.