X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FEquipMenu.h;h=cf7e75b384b6d15af50d91ef5ac0047a9ece6749;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=dd28344b612ff3530a989f025f21e361178dc152;hpb=5ff22859ee5966297862d3384206fa2cf52da7ca;p=l2e.git diff --git a/src/menu/EquipMenu.h b/src/menu/EquipMenu.h index dd28344..cf7e75b 100644 --- a/src/menu/EquipMenu.h +++ b/src/menu/EquipMenu.h @@ -1,17 +1,19 @@ -/* - * EquipMenu.h - * - * Created on: Nov 18, 2012 - * Author: holy - */ - #ifndef MENU_EQUIPMENU_H_ #define MENU_EQUIPMENU_H_ -#include "fwd.h" +namespace common { + class Hero; + class Item; +} +namespace math { + template + class Vector; +} +namespace menu { + class PartyMenu; +} + #include "../app/State.h" -#include "../common/fwd.h" -#include "../geometry/Vector.h" #include "../graphics/Menu.h" namespace menu { @@ -24,7 +26,7 @@ public: public: virtual void HandleEvents(const app::Input &); - virtual void UpdateWorld(float deltaT); + virtual void UpdateWorld(Uint32 deltaT); virtual void Render(SDL_Surface *); public: @@ -47,13 +49,19 @@ private: void LoadEquipment(); void RemoveAllEquipment(); + void RemoveItem(); + void DropItem(); + + bool InventoryVisible() const; + void LoadInventory(); + void EquipSelected(); - void RenderStatus(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderStats(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const geometry::Vector &position) const; - void RenderEquipmentMenu(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderActionMenu(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderInventoryMenu(SDL_Surface *screen, const geometry::Vector &offset) const; + void RenderStatus(SDL_Surface *screen, const math::Vector &offset) const; + void RenderStats(SDL_Surface *screen, const math::Vector &offset) const; + void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const math::Vector &position) const; + void RenderEquipmentMenu(SDL_Surface *screen, const math::Vector &offset) const; + void RenderActionMenu(SDL_Surface *screen, const math::Vector &offset) const; + void RenderInventoryMenu(SDL_Surface *screen, const math::Vector &offset) const; private: PartyMenu *parent; @@ -73,4 +81,4 @@ private: } -#endif /* MENU_EQUIPMENU_H_ */ +#endif