]> git.localhorst.tv Git - l2e.git/commitdiff
added experience as a common hero property
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 31 Oct 2012 21:06:15 +0000 (22:06 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 31 Oct 2012 21:06:15 +0000 (22:06 +0100)
src/common/Hero.cpp
src/common/Hero.h

index 02c4dcc05b8e4fc8807f0d266e31d9652d539c14..373f63d01d2744c373c39f7dad7e655df9953bec 100644 (file)
@@ -32,6 +32,7 @@ Hero::Hero()
 , ip(0)
 
 , level(0)
+, experience(0)
 
 , weapon(0)
 , armor(0)
index b12e8f5b50c8e3ae719814d42c638f08ed057c0d..6c03eee0ae4cc7f06adb9b251979599b342354da 100644 (file)
@@ -47,6 +47,7 @@ public:
        const Stats &GetStats() const { return stats; }
 
        Uint8 Level() const { return level; }
+       int Experience() const { return experience; }
 
        Item *Weapon() { return weapon; }
        Item *Armor() { return armor; }
@@ -104,6 +105,7 @@ private:
        Stats stats;
 
        int level;
+       int experience;
 
        Item *weapon;
        Item *armor;