]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
extracted battle logic into a class
[l2e.git] / src / common / Hero.h
index 00924d400ef7eaf3f2fca291d80c695132141076..aa12b2559cdfe69aa1221847aded744bfbd8549e 100644 (file)
@@ -1,16 +1,16 @@
-/*
- * Hero.h
- *
- *  Created on: Oct 7, 2012
- *      Author: holy
- */
-
 #ifndef COMMON_HERO_H_
 #define COMMON_HERO_H_
 
-#include "fwd.h"
+namespace common {
+       class Item;
+       class Spell;
+}
+namespace graphics {
+       class Animation;
+       class Sprite;
+}
+
 #include "Stats.h"
-#include "../graphics/fwd.h"
 #include "../map/Entity.h"
 
 #include <vector>
@@ -83,8 +83,9 @@ public:
        static void CreateTypeDescription();
        static void Construct(void *);
 
-// temporary setters
 public:
+       void SetMaxHealth(int h) { maxHealth = h; }
+       void SetHealth(int h) { health = h; }
        void AddSpell(Spell *s) { spells.push_back(s); }
 
 private:
@@ -120,4 +121,4 @@ private:
 
 }
 
-#endif /* COMMON_HERO_H_ */
+#endif