Changeset 4293 in orxonox.OLD for orxonox/branches/physics/src/util/state.h
- Timestamp:
- May 26, 2005, 10:34:14 AM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/util/state.h
r4289 r4293 1 1 /*! 2 2 \file proto_singleton.h 3 \brief Definition of the ...singleton Class3 \brief Definition of the States-singleton Class 4 4 5 5 */ 6 6 7 #ifndef _ PROTO_SINGLETON_H8 #define _ PROTO_SINGLETON_H7 #ifndef _STATE_H 8 #define _STATE_H 9 9 10 10 #include "base_object.h" 11 11 12 12 // FORWARD DEFINITION 13 class PNode; 13 14 14 //! A default singleton class.15 class ProtoSingleton: public BaseObject {15 //! A Singleton class, that handles some states about orxonox's objects 16 class State : public BaseObject { 16 17 17 18 public: 18 static ProtoSingleton* getInstance(void); 19 virtual ~ProtoSingleton(void); 19 static State* getInstance(void); 20 virtual ~State(void); 21 22 void setCamera(const PNode* camera, const PNode* cameraTarget); 23 const PNode* getCamera(void) const { return this->camera; }; 24 const PNode* getCameraTarget(void) const { return this->cameraTarget; }; 20 25 21 26 private: 22 ProtoSingleton(void); 23 static ProtoSingleton* singletonRef; 27 State(void); 28 static State* singletonRef; 29 30 const PNode* camera; 31 const PNode* cameraTarget; 24 32 }; 25 33 26 #endif /* _ PROTO_SINGLETON_H */34 #endif /* _STATE_H */
Note: See TracChangeset
for help on using the changeset viewer.