-/*
- * 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 {
virtual void OnResize(int width, int height);
- void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderInventory(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+ void LoadInventory();
+
+ void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderInventory(SDL_Surface *screen, const math::Vector<int> &offset) const;
private:
PartyMenu *parent;
- graphics::Menu<int> menu;
+ enum Choice {
+ CHOICE_USE,
+ CHOICE_SORT,
+ CHOICE_DROP,
+ };
+ graphics::Menu<Choice> menu;
graphics::Menu<const common::Item *> itemMenu;
};