Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/physics/physics_engine.h @ 4378

Last change on this file since 4378 was 4378, checked in by bensch, 19 years ago

orxonox/trunk: applying force works for particle-systems again

File size: 731 bytes
Line 
1/*!
2    \file physics_engine.h
3    \brief Definition of the ... singleton Class
4   
5*/
6
7#ifndef _PHYSICS_ENGINE_H
8#define _PHYSICS_ENGINE_H
9
10#include "base_object.h"
11#include "physics_connection.h"
12
13// Forward Declaration
14template<class T> class tList;
15
16
17//! A default singleton class.
18class PhysicsEngine : public BaseObject {
19
20 public:
21  static PhysicsEngine* getInstance(void);
22  virtual ~PhysicsEngine(void);
23
24  void addConnection(PhysicsConnection* connection);
25  void removeConnection(PhysicsConnection* connection);
26 
27
28
29  void tick(float dt);
30
31  void debug(void) const;
32
33 private:
34  PhysicsEngine(void);
35  static PhysicsEngine* singletonRef;
36
37  tList<PhysicsConnection>* connections;
38};
39
40
41
42#endif /* _PHYSICS_ENGINE_H */
Note: See TracBrowser for help on using the repository browser.