]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/PartyMenu.h
removed lazy fwd headers
[l2e.git] / src / menu / PartyMenu.h
index a55b2c13f81fadeaf8071e832b4edffb5c950fdf..409ee16ccf672e77c07c671f33d478cc58717a5f 100644 (file)
@@ -1,18 +1,16 @@
-/*
- * PartyMenu.h
- *
- *  Created on: Oct 21, 2012
- *      Author: holy
- */
-
 #ifndef MENU_PARTYMENU_H_
 #define MENU_PARTYMENU_H_
 
-#include "fwd.h"
+namespace common {
+       struct GameConfig;
+}
+namespace menu {
+       struct Resources;
+}
+
 #include "HeroStatus.h"
 #include "../app/State.h"
-#include "../common/fwd.h"
-#include "../geometry/Vector.h"
+#include "../math/Vector.h"
 #include "../graphics/Menu.h"
 
 namespace menu {
@@ -26,7 +24,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:
@@ -35,16 +33,21 @@ public:
        Resources &Res();
        const Resources &Res() const;
 
+       int Width() const;
+       int Height() const;
+
 public:
        void RenderBackground(SDL_Surface *screen) const;
-       void RenderHeros(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
-       void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
-       void RenderInfo(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+       void RenderHeros(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       void RenderMenu(SDL_Surface *screen, const math::Vector<int> &offset) const;
+       void RenderInfo(SDL_Surface *screen, const math::Vector<int> &offset) const;
 
-       geometry::Vector<int> StatusOffset() const;
+       math::Vector<int> StatusOffset(int index) const;
        const HeroStatus &GetHeroStatus(int index) const { return status[index]; }
 
-       static void OnStatusSelect(PartyMenu *, int);
+       static void OnEquipSelect(void *, int);
+       static void OnSpellSelect(void *, int);
+       static void OnStatusSelect(void *, int);
 
 private:
        virtual void OnEnterState(SDL_Surface *screen);
@@ -68,6 +71,7 @@ private:
 
 private:
        HeroStatus status[4];
+       math::Vector<int> statusPositions[4];
        common::GameConfig *game;
        graphics::Menu<int> mainMenu;