Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: renamed iphysics to physics_interface

File size: 708 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 private:
32  PhysicsEngine(void);
33  static PhysicsEngine* singletonRef;
34
35  tList<PhysicsConnection>* connections;
36
37 
38};
39
40
41
42#endif /* _PHYSICS_ENGINE_H */
Note: See TracBrowser for help on using the repository browser.