Changeset 4183 in orxonox.OLD for orxonox/branches/physics/src/util/physics/physics_engine.h
- Timestamp:
- May 14, 2005, 2:50:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/util/physics/physics_engine.h
r4121 r4183 1 1 /*! 2 2 \file physics_engine.h 3 \brief Definition of the proto class template, used quickly start work 4 \todo Example: this shows how to use simply add a Marker that here has to be done something. 5 6 The PhysicsEngine exists, to help you quikly getting the run for how to develop in orxonox. 7 It is an example for the CODING-CONVENTION, and a starting-point for every class. 3 \brief Definition of the ... singleton Class 4 8 5 */ 9 6 … … 12 9 13 10 #include "base_object.h" 11 #include "physics_connection.h" 12 #include "field.h" 14 13 15 // F ORWARD DEFINITION \\16 class someClassWeNeed;14 // Forward Declaration 15 template<class T> class tList; 17 16 18 17 19 /*class Test;*/ /* forward definition of class Test (without including it here!)*/ 20 21 //! A default class that aids you to start creating a new class 22 /** 23 here can be some longer description of this class 24 */ 18 //! A default singleton class. 25 19 class PhysicsEngine : public BaseObject { 26 20 27 21 public: 28 PhysicsEngine();29 virtual ~PhysicsEngine( );22 static PhysicsEngine* getInstance(void); 23 virtual ~PhysicsEngine(void); 30 24 31 bool doNonSense (int nothing); 25 void addConnection(PhysicsConnection* connection); 26 void removeConnection(PhysicsConnection* connection); 27 28 void tick(float dt); 32 29 33 30 private: 34 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this 31 PhysicsEngine(void); 32 static PhysicsEngine* singletonRef; 35 33 34 tList<PhysicsConnection>* connections; 35 36 36 37 }; 37 38 39 40 38 41 #endif /* _PHYSICS_ENGINE_H */
Note: See TracChangeset
for help on using the changeset viewer.