Parent Directory | Revision Log
Initial revision
1 | #ifndef STATEMANAGER_H_ |
2 | #define STATEMANAGER_H_ |
3 | #include "State.h" |
4 | |
5 | namespace PamOffLineSW |
6 | { |
7 | |
8 | class StateManager |
9 | { |
10 | public: |
11 | virtual ~StateManager(); |
12 | void changeState(State* state);//set currentstate |
13 | static StateManager& getInstance(); |
14 | void init(); |
15 | State* getCurrentState(); |
16 | private: |
17 | StateManager(); |
18 | State* currentState; |
19 | static StateManager instance; |
20 | |
21 | }; |
22 | |
23 | } |
24 | |
25 | #endif /*STATEMANAGER_H_*/ |
ViewVC Help | |
Powered by ViewVC 1.1.23 |