X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=60d70d2c6b6fd6c2bd01aa4101bc7f170e37d363;hb=7b3710c47f24e64e0d01378a4564730bcb2f6ef2;hp=d54394fdb7748ed3a56afc57e806565eb554b9ca;hpb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index d54394f..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; @@ -126,4 +131,4 @@ private: } -#endif /* COMMON_CAPSULE_H_ */ +#endif