Changeset 4519 in orxonox.OLD for orxonox/trunk/src/util/collision_detection
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/collision_detection/cd_engine.cc
r4511 r4519 36 36 37 37 /** 38 \returns a Pointer to this Class39 */40 CDEngine* CDEngine::getInstance(void)41 {42 if (!CDEngine::singletonRef)43 CDEngine::singletonRef = new CDEngine();44 return CDEngine::singletonRef;45 }46 47 /**48 38 \brief standard deconstructor 49 39 -
orxonox/trunk/src/util/collision_detection/cd_engine.h
r4511 r4519 15 15 16 16 public: 17 static CDEngine* getInstance(void);18 17 virtual ~CDEngine(void); 18 /** \returns a Pointer to the only object of this Class */ 19 inline static CDEngine* getInstance(void) { if (!singletonRef) singletonRef = new CDEngine(); return singletonRef; }; 19 20 20 21 private:
Note: See TracChangeset
for help on using the changeset viewer.