1 #ifndef MENU_SELECTHERO_H_
2 #define MENU_SELECTHERO_H_
5 #include "../app/State.h"
6 #include "../app/Timer.h"
7 #include "../common/fwd.h"
17 typedef void (*Callback)(void *, int selection);
20 SelectHero(app::State *parent, PartyMenu *partyMenu, void *ref, Callback, int initialHero = 0);
23 virtual void HandleEvents(const app::Input &);
24 virtual void UpdateWorld(float deltaT);
25 virtual void Render(SDL_Surface *);
28 virtual void OnEnterState(SDL_Surface *screen);
29 virtual void OnExitState(SDL_Surface *screen);
30 virtual void OnResumeState(SDL_Surface *screen);
31 virtual void OnPauseState(SDL_Surface *screen);
33 virtual void OnResize(int width, int height);
36 common::GameConfig &Game();
37 const common::GameConfig &Game() const;
39 const Resources &Res() const;
46 void RenderCursor(SDL_Surface *screen) const;
53 app::Timer<Uint32> cursorBlink;
60 #endif /* MENU_SELECTHERO_H_ */