4 * Created on: Nov 4, 2012
8 #ifndef MENU_INVENTORYMENU_H_
9 #define MENU_INVENTORYMENU_H_
12 #include "../app/State.h"
13 #include "../common/fwd.h"
14 #include "../geometry/Vector.h"
15 #include "../graphics/Menu.h"
23 explicit InventoryMenu(PartyMenu *parent);
26 virtual void HandleEvents(const app::Input &);
27 virtual void UpdateWorld(float deltaT);
28 virtual void Render(SDL_Surface *);
34 virtual void OnEnterState(SDL_Surface *screen);
35 virtual void OnExitState(SDL_Surface *screen);
36 virtual void OnResumeState(SDL_Surface *screen);
37 virtual void OnPauseState(SDL_Surface *screen);
39 virtual void OnResize(int width, int height);
43 void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
44 void RenderInventory(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
53 graphics::Menu<Choice> menu;
54 graphics::Menu<const common::Item *> itemMenu;
60 #endif /* MENU_INVENTORYMENU_H_ */