]> git.localhorst.tv Git - l2e.git/blob - src/menu/ConfigMenu.h
added config menu dummy
[l2e.git] / src / menu / ConfigMenu.h
1 /*
2  * ConfigMenu.h
3  *
4  *  Created on: Nov 29, 2012
5  *      Author: holy
6  */
7
8 #ifndef MENU_CONFIGMENU_H_
9 #define MENU_CONFIGMENU_H_
10
11 #include "fwd.h"
12 #include "../app/State.h"
13 #include "../geometry/Vector.h"
14
15 namespace menu {
16
17 class ConfigMenu
18 : public app::State {
19
20 public:
21         explicit ConfigMenu(PartyMenu *parent);
22
23 public:
24         virtual void HandleEvents(const app::Input &);
25         virtual void UpdateWorld(float deltaT);
26         virtual void Render(SDL_Surface *);
27
28 public:
29         int Width() const;
30         int Height() const;
31
32 private:
33         virtual void OnEnterState(SDL_Surface *screen);
34         virtual void OnExitState(SDL_Surface *screen);
35         virtual void OnResumeState(SDL_Surface *screen);
36         virtual void OnPauseState(SDL_Surface *screen);
37
38         virtual void OnResize(int width, int height);
39
40         void RenderHeadline(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
41         void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
42
43 private:
44         PartyMenu *parent;
45
46 };
47
48 }
49
50 #endif /* MENU_CONFIGMENU_H_ */