X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FCapsule.h;h=60d70d2c6b6fd6c2bd01aa4101bc7f170e37d363;hb=7b3710c47f24e64e0d01378a4564730bcb2f6ef2;hp=bf99cfa1ad376660c322c97640515ec9b71f4dce;hpb=c5e56f45e08fcc6c4dceb586ce3d671a3f3907ab;p=l2e.git diff --git a/src/common/Capsule.h b/src/common/Capsule.h index bf99cfa..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 "../geometry/Vector.h" +#include "Stats.h" +#include "../math/Vector.h" +#include #include namespace common { @@ -39,7 +42,7 @@ public: int MaxClass() const { return maxClass; } int CurrentClass() const { return curClass; } - const geometry::Vector &AlignmentOffset() const { return alignmentCursor; } + const math::Vector &AlignmentOffset() const { return alignmentCursor; } const graphics::Sprite *AlignmentSprite() const { return alignmentSprite; } void UpgradeClass(); @@ -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(); @@ -106,7 +111,7 @@ private: const char *name; const char *alignment; - geometry::Vector alignmentCursor; + math::Vector alignmentCursor; const graphics::Sprite *alignmentSprite; int maxHealth; @@ -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