]> git.localhorst.tv Git - l2e.git/blob - src/menu/ConfigMenu.h
e8b2692c3d982843adde46d4717dc8468d2fb047
[l2e.git] / src / menu / ConfigMenu.h
1 #ifndef MENU_CONFIGMENU_H_
2 #define MENU_CONFIGMENU_H_
3
4 namespace math {
5         template<class>
6         class Vector;
7 }
8 namespace menu {
9         class PartyMenu;
10 }
11
12 #include "../app/State.h"
13 #include "../graphics/Menu.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(Uint32 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 math::Vector<int> &offset) const;
41         void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
42
43 private:
44         PartyMenu *parent;
45         graphics::Menu<int> configMenu;
46
47 };
48
49 }
50
51 #endif /* MENU_CONFIGMENU_H_ */