1 #ifndef MENU_CAPSULEFEEDMENU_H_
2 #define MENU_CAPSULEFEEDMENU_H_
5 #include "../app/State.h"
6 #include "../common/fwd.h"
7 #include "../geometry/Vector.h"
8 #include "../graphics/Menu.h"
18 explicit CapsuleFeedMenu(CapsuleMenu *parent);
21 virtual void HandleEvents(const app::Input &);
22 virtual void UpdateWorld(float deltaT);
23 virtual void Render(SDL_Surface *);
30 virtual void OnEnterState(SDL_Surface *screen);
31 virtual void OnExitState(SDL_Surface *screen);
32 virtual void OnResumeState(SDL_Surface *screen);
33 virtual void OnPauseState(SDL_Surface *screen);
35 virtual void OnResize(int width, int height);
37 common::Capsule &GetCapsule();
38 const common::Capsule &GetCapsule() const;
43 void RenderName(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
44 void RenderSprite(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
45 void RenderGrowth(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
46 void RenderHunger(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
47 void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
48 void RenderItems(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
56 graphics::Menu<Choice> menu;
57 graphics::Menu<const common::Item *> itemMenu;
63 #endif /* MENU_CAPSULEFEEDMENU_H_ */