Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: physicsInterfaces now check in at constuctiontime with the PhysicsEngine

File size: 1.0 KB
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
12#include "physics_connection.h"
13#include "physics_interface.h"
14
15// Forward Declaration
16template<class T> class tList;
17
18
19//! A default singleton class.
20class PhysicsEngine : public BaseObject {
21
22 public:
23  static PhysicsEngine* getInstance(void);
24  virtual ~PhysicsEngine(void);
25
26  void addPhysicsInterface(PhysicsInterface* physicsInterface);
27  void removePhysicsInterface(PhysicsInterface* physicsInterface);
28
29
30  void addConnection(PhysicsConnection* connection);
31  void removeConnection(PhysicsConnection* connection);
32
33  void tick(float dt);
34
35  void debug(void) const;
36
37 private:
38  PhysicsEngine(void);
39  static PhysicsEngine* singletonRef;      //!< the singleton reference of the PhysicsEngine
40
41  tList<PhysicsInterface>* interfaces;     //!< a list of physically based objects
42  tList<PhysicsConnection>* connections;   //!< a list of physical connections
43};
44
45
46
47#endif /* _PHYSICS_ENGINE_H */
Note: See TracBrowser for help on using the repository browser.