]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/HeroTag.h
added physical/magical status of ikari attacks
[l2e.git] / src / battle / HeroTag.h
index c60634853035bf58b76800c48e71b2e90d2f1426..5f122cf5d5b77fd24eb3f1f5e3a0d9502ad46681 100644 (file)
@@ -8,13 +8,23 @@
 #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 AttackChoice;
+struct Resources;
 
 class HeroTag {
 
@@ -25,14 +35,21 @@ public:
        };
 
 public:
-       HeroTag(const Hero *hero, Alignment align) : hero(hero), align(align) { }
+       HeroTag() : hero(0), choice(0), res(0), align(LEFT) { };
+       HeroTag(const Hero *hero, const AttackChoice *choice, const Resources *res, Alignment align)
+       : hero(hero), choice(choice), res(res), align(align) { }
        ~HeroTag() { }
 
 public:
+       const graphics::Sprite *HeroSprite() const { return hero->Sprite(); }
+       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;
+       const AttackChoice *choice;
+       const Resources *res;
        Alignment align;
 
 };