1 #ifndef MENU_CAPSULEFEEDMENU_H_
2 #define MENU_CAPSULEFEEDMENU_H_
16 #include "../app/State.h"
17 #include "../graphics/Menu.h"
27 explicit CapsuleFeedMenu(CapsuleMenu *parent);
30 virtual void HandleEvents(const app::Input &);
31 virtual void UpdateWorld(Uint32 deltaT);
32 virtual void Render(SDL_Surface *);
39 virtual void OnEnterState(SDL_Surface *screen);
40 virtual void OnExitState(SDL_Surface *screen);
41 virtual void OnResumeState(SDL_Surface *screen);
42 virtual void OnPauseState(SDL_Surface *screen);
44 virtual void OnResize(int width, int height);
46 common::Capsule &GetCapsule();
47 const common::Capsule &GetCapsule() const;
52 void RenderName(SDL_Surface *screen, const math::Vector<int> &offset) const;
53 void RenderSprite(SDL_Surface *screen, const math::Vector<int> &offset) const;
54 void RenderGrowth(SDL_Surface *screen, const math::Vector<int> &offset) const;
55 void RenderHunger(SDL_Surface *screen, const math::Vector<int> &offset) const;
56 void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
57 void RenderItems(SDL_Surface *screen, const math::Vector<int> &offset) const;
65 graphics::Menu<Choice> menu;
66 graphics::Menu<const common::Item *> itemMenu;