]> git.localhorst.tv Git - l2e.git/blob - src/menu/ChangeHero.h
removed lazy fwd headers
[l2e.git] / src / menu / ChangeHero.h
1 #ifndef MENU_CHANGEHERO_H_
2 #define MENU_CHANGEHERO_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
14 #include <SDL.h>
15
16 namespace menu {
17
18 class ChangeHero
19 : public app::State {
20
21 public:
22         explicit ChangeHero(PartyMenu *parent);
23
24 public:
25         virtual void HandleEvents(const app::Input &);
26         virtual void UpdateWorld(Uint32 deltaT);
27         virtual void Render(SDL_Surface *);
28
29 public:
30         int Width() const;
31         int Height() const;
32
33 private:
34         virtual void OnEnterState(SDL_Surface *screen);
35         virtual void OnExitState(SDL_Surface *screen);
36         virtual void OnResumeState(SDL_Surface *screen);
37         virtual void OnPauseState(SDL_Surface *screen);
38
39         virtual void OnResize(int width, int height);
40
41         void SelectedHero(int index);
42
43         void RenderHighlight(SDL_Surface *screen, const math::Vector<int> &offset) const;
44
45         static void OnHeroSelected(void *, int);
46
47 private:
48         PartyMenu *parent;
49         SDL_Surface *highlight;
50         int selection;
51
52 };
53
54 }
55
56 #endif /* MENU_CHANGEHERO_H_ */