Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util/state.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/state.h
r4597 r4746 17 17 public: 18 18 /** \returns a Pointer to the only object of this Class */ 19 inline static State* getInstance( void) { if (!singletonRef) singletonRef = new State(); return singletonRef; };19 inline static State* getInstance() { if (!singletonRef) singletonRef = new State(); return singletonRef; }; 20 20 21 virtual ~State( void);21 virtual ~State(); 22 22 23 23 void setCamera(const PNode* camera, const PNode* cameraTarget); 24 24 /** \returns a Pointer to the PNode of the Camera */ 25 const PNode* getCamera( void) const { return this->camera; };25 const PNode* getCamera() const { return this->camera; }; 26 26 /** \returns a Pointer to the CameraTarget */ 27 const PNode* getCameraTarget( void) const { return this->cameraTarget; };27 const PNode* getCameraTarget() const { return this->cameraTarget; }; 28 28 29 29 private: 30 State( void);30 State(); 31 31 static State* singletonRef; //!< a reference to this class 32 32
Note: See TracChangeset
for help on using the changeset viewer.