-/*
- * 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>
+ class Vector;
+}
+namespace menu {
+ class PartyMenu;
+}
+
#include "../app/State.h"
-#include "../common/fwd.h"
-#include "../geometry/Vector.h"
#include "../graphics/Menu.h"
namespace menu {
public:
virtual void HandleEvents(const app::Input &);
- virtual void UpdateWorld(float deltaT);
+ virtual void UpdateWorld(Uint32 deltaT);
virtual void Render(SDL_Surface *);
public:
void LoadEquipment();
void RemoveAllEquipment();
+ void RemoveItem();
+ void DropItem();
+
+ bool InventoryVisible() const;
+ void LoadInventory();
+ void EquipSelected();
- void RenderStatus(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderStats(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const geometry::Vector<int> &position) const;
- void RenderEquipmentMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderActionMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
- void RenderInventoryMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+ void RenderStatus(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderStats(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderStatsLine(const char *label, int number, SDL_Surface *screen, const math::Vector<int> &position) const;
+ void RenderEquipmentMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderActionMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
+ void RenderInventoryMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
private:
PartyMenu *parent;
}
-#endif /* MENU_EQUIPMENU_H_ */
+#endif