]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/HeroTag.h
added and implemented swap heroes state
[l2e.git] / src / battle / HeroTag.h
index c60634853035bf58b76800c48e71b2e90d2f1426..c21f8570b63c5de5b2668502f3e876f9c806fd80 100644 (file)
@@ -8,32 +8,40 @@
 #ifndef BATTLE_HEROTAG_H_
 #define BATTLE_HEROTAG_H_
 
+#include "Hero.h"
 #include "../geometry/Point.h"
+#include "../geometry/Vector.h"
 
 #include <SDL.h>
 
+namespace graphics {
+       class Font;
+       class Frame;
+       class Gauge;
+       class Sprite;
+}
+
 namespace battle {
 
-class Hero;
+class BattleState;
 
 class HeroTag {
 
 public:
-       enum Alignment {
-               LEFT,
-               RIGHT
-       };
-
-public:
-       HeroTag(const Hero *hero, Alignment align) : hero(hero), align(align) { }
+       HeroTag() : battle(0), index(0) { };
+       HeroTag(const BattleState *battle, int heroIndex)
+       : battle(battle), index(heroIndex) { }
        ~HeroTag() { }
 
 public:
+       const graphics::Sprite *HeroSprite() const;
+       geometry::Vector<int> HeroOffset() const;
+
        void Render(SDL_Surface *screen, int width, int height, geometry::Point<int> position, bool active) const;
 
 private:
-       const Hero *hero;
-       Alignment align;
+       const BattleState *battle;
+       int index;
 
 };