]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
changed Frame implementation
[l2e.git] / src / common / Hero.h
index caa8f4dba2a5e71c1074c0be28021c6f1a3d3aea..b12e8f5b50c8e3ae719814d42c638f08ed057c0d 100644 (file)
@@ -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<const Spell *> &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; }