Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/collision_detection/cd_engine.h @ 4519

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

orxonox/trunk: changed all getInstances into inline functions to save some (minor) time

File size: 579 bytes
Line 
1/*!
2    \file cd_engine.h
3    \brief Definition of the collision detection engine
4   
5*/
6
7#ifndef _CD_ENGINE_H
8#define _CD_ENGINE_H
9
10#include "base_object.h"
11
12
13//! The class representing the collision detection system of orxonox
14class CDEngine : public BaseObject {
15
16 public:
17  virtual ~CDEngine(void);
18  /** \returns a Pointer to the only object of this Class */
19  inline static CDEngine* getInstance(void) { if (!singletonRef) singletonRef = new CDEngine();  return singletonRef; };
20
21 private:
22  CDEngine(void);
23  static CDEngine* singletonRef;
24};
25
26#endif /* _CD_ENGINE_H */
Note: See TracBrowser for help on using the repository browser.