1 #ifndef MENU_SELECTHERO_H_
2 #define MENU_SELECTHERO_H_
12 #include "../app/State.h"
13 #include "../app/Timer.h"
23 typedef void (*Callback)(void *, int selection);
26 SelectHero(app::State *parent, PartyMenu *partyMenu, void *ref, Callback, int initialHero = 0);
29 virtual void HandleEvents(const app::Input &);
30 virtual void UpdateWorld(Uint32 deltaT);
31 virtual void Render(SDL_Surface *);
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);
39 virtual void OnResize(int width, int height);
42 common::GameConfig &Game();
43 const common::GameConfig &Game() const;
45 const Resources &Res() const;
52 void RenderCursor(SDL_Surface *screen) const;
59 app::Timer<Uint32> cursorBlink;
66 #endif /* MENU_SELECTHERO_H_ */