X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=a0f1da47fc0af02833cc10f6bb00033d9de89afa;hb=HEAD;hp=2016396a4458d605c58c0d7fc77919c17f407791;hpb=8f4cb4e8ad954ba73fb78a030c969c933a7ed60c;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index 2016396..a0f1da4 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -3,7 +3,9 @@ namespace common { class Item; + class LevelUp; class Spell; + class Upgrade; } namespace graphics { class Animation; @@ -73,13 +75,7 @@ public: int Experience() const { return experience; } int NextLevel() const; - struct UpgradeInfo { - UpgradeType type; - int amount; - UpgradeInfo(UpgradeType t, int a = 0) - : type(t), amount(a) { } - }; - void AddExperience(int, std::vector &); + void AddExperience(int, std::vector &); bool CanEquip(const Item &) const; bool CanInvoke(const Spell &) const; @@ -121,8 +117,7 @@ private: int level; int experience; - // TODO: ladder should contain hp, mp, and stats mods. - int *levelLadder; + LevelUp *levelLadder; int numLevels; int useMask;