1 #ifndef MENU_CAPSULEMENU_H_
2 #define MENU_CAPSULEMENU_H_
5 #include "../app/State.h"
6 #include "../common/fwd.h"
7 #include "../geometry/Vector.h"
8 #include "../graphics/Menu.h"
16 explicit CapsuleMenu(PartyMenu *parent);
19 virtual void HandleEvents(const app::Input &);
20 virtual void UpdateWorld(float deltaT);
21 virtual void Render(SDL_Surface *);
23 void RenderBackground(SDL_Surface *screen) const;
24 void RenderCapsule(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
25 void RenderInfo(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
26 void RenderWheel(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
27 void RenderStats(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
28 void RenderStatsLine(SDL_Surface *screen, const geometry::Vector<int> &offset, const char *name, int value) const;
29 void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
32 common::GameConfig &Game();
33 const common::GameConfig &Game() const;
35 const Resources &Res() const;
36 common::Capsule &GetCapsule();
37 const common::Capsule &GetCapsule() const;
43 virtual void OnEnterState(SDL_Surface *screen);
44 virtual void OnExitState(SDL_Surface *screen);
45 virtual void OnResumeState(SDL_Surface *screen);
46 virtual void OnPauseState(SDL_Surface *screen);
48 virtual void OnResize(int width, int height);
57 graphics::Menu<Choice> menu;
63 #endif /* MENU_CAPSULEMENU_H_ */