Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2005, 2:50:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: physicsEngine works for particles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/util/physics/physics_engine.h

    r4121 r4183  
    11/*!
    22    \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   
    85*/
    96
     
    129
    1310#include "base_object.h"
     11#include "physics_connection.h"
     12#include "field.h"
    1413
    15 // FORWARD DEFINITION \\
    16 class someClassWeNeed;
     14// Forward Declaration
     15template<class T> class tList;
    1716
    1817
    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.
    2519class PhysicsEngine : public BaseObject {
    2620
    2721 public:
    28   PhysicsEngine();
    29   virtual ~PhysicsEngine();
     22  static PhysicsEngine* getInstance(void);
     23  virtual ~PhysicsEngine(void);
    3024
    31   bool doNonSense (int nothing);
     25  void addConnection(PhysicsConnection* connection);
     26  void removeConnection(PhysicsConnection* connection);
     27
     28  void tick(float dt);
    3229
    3330 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;
    3533
     34  tList<PhysicsConnection>* connections;
     35
     36 
    3637};
    3738
     39
     40
    3841#endif /* _PHYSICS_ENGINE_H */
Note: See TracChangeset for help on using the changeset viewer.