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;
Uint8 cost;
TargetingMode targetingMode;
+ bool isPhysical;
+
};
}