1 #ifndef MENU_CAPSULEMENU_H_
2 #define MENU_CAPSULEMENU_H_
17 #include "../app/State.h"
18 #include "../graphics/Menu.h"
26 explicit CapsuleMenu(PartyMenu *parent);
29 virtual void HandleEvents(const app::Input &);
30 virtual void UpdateWorld(Uint32 deltaT);
31 virtual void Render(SDL_Surface *);
33 void RenderBackground(SDL_Surface *screen) const;
34 void RenderCapsule(SDL_Surface *screen, const math::Vector<int> &offset) const;
35 void RenderInfo(SDL_Surface *screen, const math::Vector<int> &offset) const;
36 void RenderWheel(SDL_Surface *screen, const math::Vector<int> &offset) const;
37 void RenderStats(SDL_Surface *screen, const math::Vector<int> &offset) const;
38 void RenderStatsLine(SDL_Surface *screen, const math::Vector<int> &offset, const char *name, int value) const;
39 void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
42 common::GameConfig &Game();
43 const common::GameConfig &Game() const;
45 const Resources &Res() const;
46 common::Capsule &GetCapsule();
47 const common::Capsule &GetCapsule() const;
53 virtual void OnEnterState(SDL_Surface *screen);
54 virtual void OnExitState(SDL_Surface *screen);
55 virtual void OnResumeState(SDL_Surface *screen);
56 virtual void OnPauseState(SDL_Surface *screen);
58 virtual void OnResize(int width, int height);
67 graphics::Menu<Choice> menu;