]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/StatusMenu.h
switched geometric scalars from floating to fixed
[l2e.git] / src / menu / StatusMenu.h
index 61082d4d95903d94b21413a6ba2f14c1854d3612..6ef81898c1b3da60f37d9f1d72febc70c54fff3c 100644 (file)
@@ -1,17 +1,11 @@
-/*
- * StatusMenu.h
- *
- *  Created on: Oct 22, 2012
- *      Author: holy
- */
-
 #ifndef MENU_STATUSMENU_H_
 #define MENU_STATUSMENU_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 {
 
@@ -23,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:
@@ -41,15 +35,24 @@ private:
        void NextHero();
        void PreviousHero();
 
-       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 RenderEquipment(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
-       void RenderEquipmentLine(const common::Item *, SDL_Surface *screen, const geometry::Vector<int> &position) const;
+       const common::Hero &GetHero() 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 RenderEquipment(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       void RenderEquipmentLine(const common::Item *, SDL_Surface *screen, const math::Vector<int> &position) const;
+       /// @param offset the top right corner!
+       void RenderExperience(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       /// @param offset the top right corner!
+       void RenderNextLevel(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       void RenderIkari(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
 
 private:
        PartyMenu *parent;
        int cursor;
+       graphics::Menu<int> menu;
 
 };