1 #ifndef MENU_EQUIPMENU_H_
2 #define MENU_EQUIPMENU_H_
5 #include "../app/State.h"
6 #include "../common/fwd.h"
7 #include "../geometry/Vector.h"
8 #include "../graphics/Menu.h"
16 EquipMenu(PartyMenu *parent, int heroIndex);
19 virtual void HandleEvents(const app::Input &);
20 virtual void UpdateWorld(float deltaT);
21 virtual void Render(SDL_Surface *);
28 virtual void OnEnterState(SDL_Surface *screen);
29 virtual void OnExitState(SDL_Surface *screen);
30 virtual void OnResumeState(SDL_Surface *screen);
31 virtual void OnPauseState(SDL_Surface *screen);
33 virtual void OnResize(int width, int height);
38 common::Hero &GetHero();
39 const common::Hero &GetHero() const;
42 void RemoveAllEquipment();
46 bool InventoryVisible() const;
50 void RenderStatus(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
51 void RenderStats(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
52 void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const geometry::Vector<int> &position) const;
53 void RenderEquipmentMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
54 void RenderActionMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
55 void RenderInventoryMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
67 graphics::Menu<Choice> actionMenu;
68 graphics::Menu<const common::Item *> equipmentMenu;
69 graphics::Menu<const common::Item *> inventoryMenu;
75 #endif /* MENU_EQUIPMENU_H_ */