X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=1b4c8d10954c3076007d38730a2a622daf900f3d;hb=3d69f521b593457304b282e5f23e36ab165288b6;hp=2016396a4458d605c58c0d7fc77919c17f407791;hpb=8f4cb4e8ad954ba73fb78a030c969c933a7ed60c;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index 2016396..1b4c8d1 100644 --- a/src/common/Hero.h +++ b/src/common/Hero.h @@ -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 &); + void AddExperience(int, std::vector &); bool CanEquip(const Item &) const; bool CanInvoke(const Spell &) const;