Changeset 7843 in orxonox.OLD for trunk/src/lib/collision_reaction
- Timestamp:
- May 24, 2006, 11:17:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_reaction/cr_engine.h
r7842 r7843 46 46 47 47 /** @returns an instance to a collision object. instead of creating new object this ones can be resycled */ 48 48 inline Collision* getCollisionObject() { /* return the first element of the cache list*/ } 49 49 /** @param collision: returns the Collision object back to the cache list */ 50 50 inline void putCollisionObject(Collision* collision) { this->cachedCollisions.push_back(collision); } … … 52 52 53 53 private: 54 CREngine(void);55 static CREngine* singletonRef; //!< the reference to the CREngine object (singleton)56 54 57 55 std::vector<CollisionHandle*> collisionHandles; //!< list with the collision handles 58 56 std::vector<Collision*> cachedCollisions; //!< a list of unused, cached collision events 59 57 #endif 58 private: 59 CREngine(void); 60 static CREngine* singletonRef; //!< the reference to the CREngine object (singleton) 60 61 }; 61 62
Note: See TracChangeset
for help on using the changeset viewer.