]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
extracted battle logic into a class
[l2e.git] / src / common / Hero.h
index 787241906a96c35a92d035691a6c02815b3d8a32..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: