X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=b12e8f5b50c8e3ae719814d42c638f08ed057c0d;hb=7651db1476453d8d4162e8708265a36c1a3c0441;hp=caa8f4dba2a5e71c1074c0be28021c6f1a3d3aea;hpb=d2d8ff1fd5f55e8b43d48ae5e75c216492e2f032;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index caa8f4d..b12e8f5 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -19,6 +19,9 @@ namespace common { class Hero { +public: + static const int TYPE_ID = 301; + public: Hero(); ~Hero() { } @@ -69,6 +72,7 @@ public: const std::vector &Spells() const { return spells; } graphics::Sprite *BattleSprite() { return battleSprite; } + const graphics::Sprite *BattleSprite() const { return battleSprite; } graphics::Animation *MeleeAnimation() { return meleeAnimation; } graphics::Animation *AttackAnimation() { return attackAnimation; } graphics::Animation *SpellAnimation() { return spellAnimation; }