]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Hero.h
moved upgrade process to battle class
[l2e.git] / src / common / Hero.h
index 2016396a4458d605c58c0d7fc77919c17f407791..1b4c8d10954c3076007d38730a2a622daf900f3d 100644 (file)
@@ -4,6 +4,7 @@
 namespace common {
        class Item;
        class Spell;
+       class Upgrade;
 }
 namespace graphics {
        class Animation;
@@ -73,13 +74,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;