X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=70d21f202b7551dd11a45642a949871286036ba7;hb=5ff22859ee5966297862d3384206fa2cf52da7ca;hp=b12e8f5b50c8e3ae719814d42c638f08ed057c0d;hpb=57a75f13e98f4b5d311c2d3b9d9ff637120c5ee2;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index b12e8f5..70d21f2 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; } @@ -69,6 +71,14 @@ public: bool HasRing() const { return ring; } bool HasJewel() const { return jewel; } + void RemoveWeapon() { weapon = 0; } + void RemoveArmor() { armor = 0; } + void RemoveShield() { shield = 0; } + void RemoveHelmet() { helmet = 0; } + void RemoveRing() { ring = 0; } + void RemoveJewel() { jewel = 0; } + + std::vector &Spells() { return spells; } const std::vector &Spells() const { return spells; } graphics::Sprite *BattleSprite() { return battleSprite; } @@ -104,6 +114,10 @@ private: Stats stats; int level; + int experience; + + int *levelLadder; + int numLevels; Item *weapon; Item *armor;