From: Daniel Karbach Date: Wed, 31 Oct 2012 21:06:15 +0000 (+0100) Subject: added experience as a common hero property X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=ec0841bce8db9b1419dfbbb03ceff9c8502ab755;p=l2e.git added experience as a common hero property --- diff --git a/src/common/Hero.cpp b/src/common/Hero.cpp index 02c4dcc..373f63d 100644 --- a/src/common/Hero.cpp +++ b/src/common/Hero.cpp @@ -32,6 +32,7 @@ Hero::Hero() , ip(0) , level(0) +, experience(0) , weapon(0) , armor(0) diff --git a/src/common/Hero.h b/src/common/Hero.h index b12e8f5..6c03eee 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -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;