X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.h;h=a0f1da47fc0af02833cc10f6bb00033d9de89afa;hb=b9e715649b41cb69ea1b2d2a588522541eb87b46;hp=aa12b2559cdfe69aa1221847aded744bfbd8549e;hpb=087783315ac5955c17bb3b051c9351f321653df6;p=l2e.git diff --git a/src/common/Hero.h b/src/common/Hero.h index aa12b25..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; @@ -37,6 +39,19 @@ public: EQUIP_COUNT, }; + enum UpgradeType { + UPGRADE_LVL, + UPGRADE_MHP, + UPGRADE_MMP, + UPGRADE_ATK, + UPGRADE_DFP, + UPGRADE_STR, + UPGRADE_AGL, + UPGRADE_INT, + UPGRADE_GUT, + UPGRADE_MGR, + }; + const char *Name() const { return name; } Uint16 MaxHealth() const { return maxHealth; } @@ -60,6 +75,8 @@ public: int Experience() const { return experience; } int NextLevel() const; + void AddExperience(int, std::vector &); + bool CanEquip(const Item &) const; bool CanInvoke(const Spell &) const; @@ -100,7 +117,7 @@ private: int level; int experience; - int *levelLadder; + LevelUp *levelLadder; int numLevels; int useMask;