4 * Created on: Oct 22, 2012
8 #ifndef MENU_SELECTHERO_H_
9 #define MENU_SELECTHERO_H_
12 #include "../app/State.h"
13 #include "../app/Timer.h"
14 #include "../common/fwd.h"
24 typedef void (*Callback)(void *, int selection);
27 SelectHero(app::State *parent, PartyMenu *partyMenu, void *ref, Callback, int initialHero = 0);
30 virtual void HandleEvents(const app::Input &);
31 virtual void UpdateWorld(float deltaT);
32 virtual void Render(SDL_Surface *);
35 virtual void OnEnterState(SDL_Surface *screen);
36 virtual void OnExitState(SDL_Surface *screen);
37 virtual void OnResumeState(SDL_Surface *screen);
38 virtual void OnPauseState(SDL_Surface *screen);
40 virtual void OnResize(int width, int height);
43 common::GameConfig &Game();
44 const common::GameConfig &Game() const;
46 const Resources &Res() const;
53 void RenderCursor(SDL_Surface *screen) const;
60 app::Timer<Uint32> cursorBlink;
67 #endif /* MENU_SELECTHERO_H_ */