]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/EquipMenu.h
switched geometric scalars from floating to fixed
[l2e.git] / src / menu / EquipMenu.h
index 39380dcccd2d597ad2699754a069d86d4d9bd0cf..992afd793de4897f27b1eee950b7328fbd07b5a0 100644 (file)
@@ -1,17 +1,10 @@
-/*
- * EquipMenu.h
- *
- *  Created on: Nov 18, 2012
- *      Author: holy
- */
-
 #ifndef MENU_EQUIPMENU_H_
 #define MENU_EQUIPMENU_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 {
@@ -24,7 +17,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:
@@ -42,16 +35,24 @@ private:
        void NextHero();
        void PreviousHero();
 
+       common::Hero &GetHero();
        const common::Hero &GetHero() const;
 
        void LoadEquipment();
-
-       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 RemoveAllEquipment();
+       void RemoveItem();
+       void DropItem();
+
+       bool InventoryVisible() const;
+       void LoadInventory();
+       void EquipSelected();
+
+       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;