X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FIkari.h;h=a5751063e7057472ee1d608d8e0c533c63151b89;hb=41983a2cd8dbbfe6adc02cdfccbf5c2887306e51;hp=d73798f3c245428aa93b7a0f9f923a87fa7c2a14;hpb=2d10e898ccd404a69be02f5e93cf97398de99984;p=l2e.git diff --git a/src/common/Ikari.h b/src/common/Ikari.h index d73798f..a575106 100644 --- a/src/common/Ikari.h +++ b/src/common/Ikari.h @@ -25,12 +25,17 @@ public: TargetingMode &GetTargetingMode() { return targetingMode; } const TargetingMode &GetTargetingMode() const { return targetingMode; } + bool IsMagical() const { return !isPhysical; } + bool IsPhysical() const { return isPhysical; } + // TODO: add missing ikari properties // 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 +43,8 @@ private: Uint8 cost; TargetingMode targetingMode; + bool isPhysical; + }; }