Last change
on this file since 4480 was
4338,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged branches/physics back to the trunk
merged with command
svn merge -r 3866:HEAD . ../../trunk/
many conflict that i tried to resolv
@patrick: i hope i did not interfere with your stuff :/
|
File size:
706 bytes
|
Rev | Line | |
---|
[3655] | 1 | /*! |
---|
| 2 | \file proto_singleton.h |
---|
[4293] | 3 | \brief Definition of the States-singleton Class |
---|
[3655] | 4 | |
---|
| 5 | */ |
---|
| 6 | |
---|
[4293] | 7 | #ifndef _STATE_H |
---|
| 8 | #define _STATE_H |
---|
[3655] | 9 | |
---|
| 10 | #include "base_object.h" |
---|
| 11 | |
---|
[4178] | 12 | // FORWARD DEFINITION |
---|
[4293] | 13 | class PNode; |
---|
[3655] | 14 | |
---|
[4293] | 15 | //! A Singleton class, that handles some states about orxonox's objects |
---|
| 16 | class State : public BaseObject { |
---|
[3655] | 17 | |
---|
| 18 | public: |
---|
[4293] | 19 | static State* getInstance(void); |
---|
| 20 | virtual ~State(void); |
---|
[3655] | 21 | |
---|
[4293] | 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; }; |
---|
| 25 | |
---|
[3655] | 26 | private: |
---|
[4293] | 27 | State(void); |
---|
| 28 | static State* singletonRef; |
---|
| 29 | |
---|
| 30 | const PNode* camera; |
---|
| 31 | const PNode* cameraTarget; |
---|
[3655] | 32 | }; |
---|
| 33 | |
---|
[4293] | 34 | #endif /* _STATE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.