Last change
on this file since 4433 was
4338,
checked in by bensch, 19 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
|
Line | |
---|
1 | /*! |
---|
2 | \file proto_singleton.h |
---|
3 | \brief Definition of the States-singleton Class |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _STATE_H |
---|
8 | #define _STATE_H |
---|
9 | |
---|
10 | #include "base_object.h" |
---|
11 | |
---|
12 | // FORWARD DEFINITION |
---|
13 | class PNode; |
---|
14 | |
---|
15 | //! A Singleton class, that handles some states about orxonox's objects |
---|
16 | class State : public BaseObject { |
---|
17 | |
---|
18 | public: |
---|
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; }; |
---|
25 | |
---|
26 | private: |
---|
27 | State(void); |
---|
28 | static State* singletonRef; |
---|
29 | |
---|
30 | const PNode* camera; |
---|
31 | const PNode* cameraTarget; |
---|
32 | }; |
---|
33 | |
---|
34 | #endif /* _STATE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.