X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmenu%2FInventoryMenu.h;h=11acf46ce249d35f2fa3d90747b85fb4c2894ff7;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=20cbe17f54ef388786488f9d98941f9b46e3c01c;hpb=c1de2db3755c2cffd790c58bbd92e7fc993afcb5;p=l2e.git diff --git a/src/menu/InventoryMenu.h b/src/menu/InventoryMenu.h index 20cbe17..11acf46 100644 --- a/src/menu/InventoryMenu.h +++ b/src/menu/InventoryMenu.h @@ -1,17 +1,10 @@ -/* - * InventoryMenu.h - * - * Created on: Nov 4, 2012 - * Author: holy - */ - #ifndef MENU_INVENTORYMENU_H_ #define MENU_INVENTORYMENU_H_ #include "fwd.h" #include "../app/State.h" #include "../common/fwd.h" -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include "../graphics/Menu.h" namespace menu { @@ -38,12 +31,19 @@ private: virtual void OnResize(int width, int height); - void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset) const; - void RenderInventory(SDL_Surface *screen, const geometry::Vector &offset) const; + void LoadInventory(); + + void RenderMenu(SDL_Surface *screen, const math::Vector &offset) const; + void RenderInventory(SDL_Surface *screen, const math::Vector &offset) const; private: PartyMenu *parent; - graphics::Menu menu; + enum Choice { + CHOICE_USE, + CHOICE_SORT, + CHOICE_DROP, + }; + graphics::Menu menu; graphics::Menu itemMenu; };