X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FIkari.h;h=299953824df6374cff9e95f36e4f443e8fa22c9d;hb=679b9e39c7680fd46482589f37f0a225032103b7;hp=d73798f3c245428aa93b7a0f9f923a87fa7c2a14;hpb=0c01d2b65aaf159bfd9bcf9d3f909a1d2ae5247f;p=l2e.git diff --git a/src/common/Ikari.h b/src/common/Ikari.h index d73798f..2999538 100644 --- a/src/common/Ikari.h +++ b/src/common/Ikari.h @@ -25,12 +25,15 @@ public: TargetingMode &GetTargetingMode() { return targetingMode; } const TargetingMode &GetTargetingMode() const { return targetingMode; } - // TODO: add missing ikari properties + bool IsMagical() const { return !isPhysical; } + bool IsPhysical() const { return isPhysical; } // temporary setters public: void SetName(const char *n) { name = n; } void SetCost(Uint8 c) { cost = c; } + void SetMagical() { isPhysical = false; } + void SetPhysical() { isPhysical = true; } private: const char *name; @@ -38,6 +41,8 @@ private: Uint8 cost; TargetingMode targetingMode; + bool isPhysical; + }; }