X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2FHero.h;h=77269c6b25572415a43c32da5e83cbd15c001f47;hb=559457f14d914f6b1cb5d588a0ccf97529f011d1;hp=ca4651c947d66003583879145d4b44b4c304b9c7;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index ca4651c..77269c6 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -47,6 +47,8 @@ public: const Stats &GetStats() const { return stats; } Uint8 Level() const { return level; } + int Experience() const { return experience; } + int NextLevel() const; Item *Weapon() { return weapon; } Item *Armor() { return armor; } @@ -72,6 +74,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; } @@ -103,6 +106,10 @@ private: Stats stats; int level; + int experience; + + int *levelLadder; + int numLevels; Item *weapon; Item *armor;