X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=60d70d2c6b6fd6c2bd01aa4101bc7f170e37d363;hb=7b3710c47f24e64e0d01378a4564730bcb2f6ef2;hp=5aa5f344fd6c09711f2c53f07cdc27507026e9f1;hpb=4309d259becd96ead792678257e910c03a6b4a3d;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index 5aa5f34..60d70d2 100644 --- a/src/common/Capsule.h +++ b/src/common/Capsule.h @@ -3,15 +3,18 @@ namespace common { class Item; + class LevelUp; + class Upgrade; } namespace graphics { class Animation; class Sprite; } -#include "../common/Stats.h" +#include "Stats.h" #include "../math/Vector.h" +#include #include namespace common { @@ -65,6 +68,8 @@ public: int Experience() const { return experience; } int NextLevel() const; + void AddExperience(int, std::vector &); + graphics::Sprite *BattleSprite(); const graphics::Sprite *BattleSprite() const; graphics::Animation *MeleeAnimation(); @@ -116,7 +121,7 @@ private: int level; int experience; - int *levelLadder; + LevelUp *levelLadder; int numLevels; Class *classes;