Changeset 7865 in orxonox.OLD for trunk/src/lib
- Timestamp:
- May 25, 2006, 11:29:55 PM (19 years ago)
- Location:
- trunk/src/lib/collision_reaction
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_reaction/cr_engine.cc
r7842 r7865 46 46 47 47 48 #if 0 48 49 49 CollisionHandle* CREngine::subscribeReaction(WorldEntity* worldEntity, CRType type, int nrOfTargets, ...) 50 50 { 51 51 va_list itemlist; 52 52 va_start (itemlist, type); 53 for (int i = 0; i < faceElemCount; i++)53 for (int i = 0; i < nrOfTargets; i++) 54 54 this->targetList.push_back(va_arg(itemlist, int)); 55 55 va_end(itemlist); 56 56 } 57 #endif58 57 59 58 60 59 60 -
trunk/src/lib/collision_reaction/cr_engine.h
r7843 r7865 8 8 9 9 #include "base_object.h" 10 #include <stdarg.h> 11 #include <vector> 10 12 11 13 // FORWARD DECLARATION 12 14 class CollisionHandle; 13 15 class Collision; 16 class WorldEntity; 14 17 15 18 //! A default singleton class. 16 19 class CREngine : public BaseObject 17 20 { 18 #if 0 21 19 22 typedef enum CRType { 20 23 CR_CONSERVATION_OF_MOMENTUM = 0, … … 29 32 CR_NUMBER 30 33 }; 31 #endif 34 32 35 33 36 public: … … 36 39 inline static CREngine* getInstance(void) { if (!singletonRef) singletonRef = new CREngine(); return singletonRef; }; 37 40 38 #if 0 41 39 42 CollisionHandle* subscribeReaction(WorldEntity* worldEntity, CRType type, int nrOfTargets, ...); 40 43 … … 52 55 53 56 private: 57 CREngine(void); 54 58 59 private: 55 60 std::vector<CollisionHandle*> collisionHandles; //!< list with the collision handles 56 61 std::vector<Collision*> cachedCollisions; //!< a list of unused, cached collision events 57 #endif 58 private: 59 CREngine(void); 62 std::vector<int> targetList; 63 60 64 static CREngine* singletonRef; //!< the reference to the CREngine object (singleton) 61 65 };
Note: See TracChangeset
for help on using the changeset viewer.