4 * Created on: Nov 18, 2012
8 #ifndef MENU_EQUIPMENU_H_
9 #define MENU_EQUIPMENU_H_
12 #include "../app/State.h"
13 #include "../common/fwd.h"
14 #include "../geometry/Vector.h"
15 #include "../graphics/Menu.h"
23 EquipMenu(PartyMenu *parent, int heroIndex);
26 virtual void HandleEvents(const app::Input &);
27 virtual void UpdateWorld(float deltaT);
28 virtual void Render(SDL_Surface *);
35 virtual void OnEnterState(SDL_Surface *screen);
36 virtual void OnExitState(SDL_Surface *screen);
37 virtual void OnResumeState(SDL_Surface *screen);
38 virtual void OnPauseState(SDL_Surface *screen);
40 virtual void OnResize(int width, int height);
45 common::Hero &GetHero();
46 const common::Hero &GetHero() const;
49 void RemoveAllEquipment();
53 bool InventoryVisible() const;
57 void RenderStatus(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
58 void RenderStats(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
59 void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const geometry::Vector<int> &position) const;
60 void RenderEquipmentMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
61 void RenderActionMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
62 void RenderInventoryMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
74 graphics::Menu<Choice> actionMenu;
75 graphics::Menu<const common::Item *> equipmentMenu;
76 graphics::Menu<const common::Item *> inventoryMenu;
82 #endif /* MENU_EQUIPMENU_H_ */