Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/physics/src/util/physics/physics_engine.h @ 4183

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

orxonox/branches/physics: physicsEngine works for particles

File size: 723 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#include "field.h"
13
14// Forward Declaration
15template<class T> class tList;
16
17
18//! A default singleton class.
19class PhysicsEngine : public BaseObject {
20
21 public:
22  static PhysicsEngine* getInstance(void);
23  virtual ~PhysicsEngine(void);
24
25  void addConnection(PhysicsConnection* connection);
26  void removeConnection(PhysicsConnection* connection);
27
28  void tick(float dt);
29
30 private:
31  PhysicsEngine(void);
32  static PhysicsEngine* singletonRef;
33
34  tList<PhysicsConnection>* connections;
35
36 
37};
38
39
40
41#endif /* _PHYSICS_ENGINE_H */
Note: See TracBrowser for help on using the repository browser.