4 * Created on: Aug 10, 2012
8 #ifndef COMMON_IKARI_H_
9 #define COMMON_IKARI_H_
11 #include "TargetingMode.h"
15 // TODO: looks like Ikari and Spell have _quite_ a lot in common…
22 const char *Name() const { return name; }
23 Uint8 Cost() const { return cost; }
25 TargetingMode &GetTargetingMode() { return targetingMode; }
26 const TargetingMode &GetTargetingMode() const { return targetingMode; }
28 bool IsMagical() const { return !isPhysical; }
29 bool IsPhysical() const { return isPhysical; }
33 void SetName(const char *n) { name = n; }
34 void SetCost(Uint8 c) { cost = c; }
35 void SetMagical() { isPhysical = false; }
36 void SetPhysical() { isPhysical = true; }
38 static void CreateTypeDescription();
44 TargetingMode targetingMode;
52 #endif /* COMMON_IKARI_H_ */