]> git.localhorst.tv Git - sdl-test7.git/blob - src/app/State.h
imported current version
[sdl-test7.git] / src / app / State.h
1 /*
2  * State.h
3  *
4  *  Created on: Apr 8, 2012
5  *      Author: holy
6  */
7
8 #ifndef APP_APPLICATIONSTATE_H_
9 #define APP_APPLICATIONSTATE_H_
10
11 #include <SDL/SDL.h>
12
13 namespace app {
14
15 class Control;
16
17 class State {
18
19         public:
20                 virtual ~State(void) { };
21
22         public:
23                 virtual void EnterState(Control *ctrl, SDL_Surface *screen) = 0;
24                 virtual void ExitState(void) = 0;
25
26                 virtual void HandleEvent(const SDL_Event &) = 0;
27                 virtual void UpdateWorld(float deltaT) = 0;
28                 virtual void Render(SDL_Surface *) = 0;
29
30 };
31
32 }
33
34 #endif /* APP_STATE_H_ */