1 #ifndef MENU_INVENTORYMENU_H_
2 #define MENU_INVENTORYMENU_H_
15 #include "../app/State.h"
16 #include "../graphics/Menu.h"
24 explicit InventoryMenu(PartyMenu *parent);
27 virtual void HandleEvents(const app::Input &);
28 virtual void UpdateWorld(Uint32 deltaT);
29 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);
44 void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
45 void RenderInventory(SDL_Surface *screen, const math::Vector<int> &offset) const;
54 graphics::Menu<Choice> menu;
55 graphics::Menu<const common::Item *> itemMenu;
61 #endif /* MENU_INVENTORYMENU_H_ */