1 #ifndef MENU_EQUIPMENU_H_
2 #define MENU_EQUIPMENU_H_
16 #include "../app/State.h"
17 #include "../graphics/Menu.h"
25 EquipMenu(PartyMenu *parent, int heroIndex);
28 virtual void HandleEvents(const app::Input &);
29 virtual void UpdateWorld(Uint32 deltaT);
30 virtual void Render(SDL_Surface *);
37 virtual void OnEnterState(SDL_Surface *screen);
38 virtual void OnExitState(SDL_Surface *screen);
39 virtual void OnResumeState(SDL_Surface *screen);
40 virtual void OnPauseState(SDL_Surface *screen);
42 virtual void OnResize(int width, int height);
47 common::Hero &GetHero();
48 const common::Hero &GetHero() const;
51 void RemoveAllEquipment();
55 bool InventoryVisible() const;
59 void RenderStatus(SDL_Surface *screen, const math::Vector<int> &offset) const;
60 void RenderStats(SDL_Surface *screen, const math::Vector<int> &offset) const;
61 void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const math::Vector<int> &position) const;
62 void RenderEquipmentMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
63 void RenderActionMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
64 void RenderInventoryMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
76 graphics::Menu<Choice> actionMenu;
77 graphics::Menu<const common::Item *> equipmentMenu;
78 graphics::Menu<const common::Item *> inventoryMenu;
84 #endif /* MENU_EQUIPMENU_H_ */