X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FSpell.h;h=eb8fa02928605b2e84b2aa37084fbdc994a43405;hb=ec8e74c6f78502fb4c1d971051960ce9f1757978;hp=38d2395125d1df4aa403d9aa130c752b4979003b;hpb=d872d756e64b8f1f57cba64ae19f479f8eab3927;p=l2e.git diff --git a/src/common/Spell.h b/src/common/Spell.h index 38d2395..eb8fa02 100644 --- a/src/common/Spell.h +++ b/src/common/Spell.h @@ -32,14 +32,15 @@ public: HeroGroup &UsableBy() { return usableBy; } const HeroGroup &UsableBy() const { return usableBy; } - // TODO: add missing spell properties - // temporary setters public: void SetName(const char *n) { name = n; } void SetCost(Uint8 c) { cost = c; } void SetUsableInBattle() { usability |= USABILITY_BATTLE; } + static void CreateTypeDescription(); + static void Construct(void *); + private: enum Usability { // USABILITY_UNUSED = 1, @@ -55,9 +56,9 @@ private: private: const char *name; - Uint16 value; + int value; - Uint8 cost; + int cost; Uint8 usability; TargetingMode targetingMode; HeroGroup usableBy;