X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=aa12b2559cdfe69aa1221847aded744bfbd8549e;hb=087783315ac5955c17bb3b051c9351f321653df6;hp=00924d400ef7eaf3f2fca291d80c695132141076;hpb=ec18252fd6199492c40b98abab289c375a5a41b7;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index 00924d4..aa12b25 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -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 @@ -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