1 #ifndef MENU_INVENTORYMENU_H_
2 #define MENU_INVENTORYMENU_H_
5 #include "../app/State.h"
6 #include "../common/fwd.h"
7 #include "../geometry/Vector.h"
8 #include "../graphics/Menu.h"
16 explicit InventoryMenu(PartyMenu *parent);
19 virtual void HandleEvents(const app::Input &);
20 virtual void UpdateWorld(float deltaT);
21 virtual void Render(SDL_Surface *);
27 virtual void OnEnterState(SDL_Surface *screen);
28 virtual void OnExitState(SDL_Surface *screen);
29 virtual void OnResumeState(SDL_Surface *screen);
30 virtual void OnPauseState(SDL_Surface *screen);
32 virtual void OnResize(int width, int height);
36 void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
37 void RenderInventory(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
46 graphics::Menu<Choice> menu;
47 graphics::Menu<const common::Item *> itemMenu;
53 #endif /* MENU_INVENTORYMENU_H_ */