Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/physics
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/physics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/physics_engine.cc
r4396 r4519 41 41 */ 42 42 PhysicsEngine* PhysicsEngine::singletonRef = NULL; 43 44 /**45 \returns a Pointer to this Class46 */47 PhysicsEngine* PhysicsEngine::getInstance(void)48 {49 if (!PhysicsEngine::singletonRef)50 PhysicsEngine::singletonRef = new PhysicsEngine();51 return PhysicsEngine::singletonRef;52 }53 43 54 44 /** -
orxonox/trunk/src/lib/physics/physics_engine.h
r4394 r4519 22 22 23 23 public: 24 static PhysicsEngine* getInstance(void);25 24 virtual ~PhysicsEngine(void); 25 /** \returns a Pointer to the only object of this Class */ 26 inline static PhysicsEngine* getInstance(void) { if (!singletonRef) singletonRef = new PhysicsEngine(); return singletonRef; }; 26 27 27 28 void addPhysicsInterface(PhysicsInterface* physicsInterface);
Note: See TracChangeset
for help on using the changeset viewer.