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