]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
put stat increments in level ladder
[l2e.git] / src / common / Hero.h
index 2016396a4458d605c58c0d7fc77919c17f407791..a0f1da47fc0af02833cc10f6bb00033d9de89afa 100644 (file)
@@ -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<UpgradeInfo> &);
+       void AddExperience(int, std::vector<Upgrade> &);
 
        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;