]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
extracted battle logic into a class
[l2e.git] / src / common / Hero.h
index 7014331b844b6cad7586edf7cc9bc1c5c7b08464..aa12b2559cdfe69aa1221847aded744bfbd8549e 100644 (file)
@@ -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