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…
19 static const int TYPE_ID = 302;
25 const char *Name() const { return name; }
26 Uint8 Cost() const { return cost; }
28 TargetingMode &GetTargetingMode() { return targetingMode; }
29 const TargetingMode &GetTargetingMode() const { return targetingMode; }
31 bool IsMagical() const { return !isPhysical; }
32 bool IsPhysical() const { return isPhysical; }
36 void SetName(const char *n) { name = n; }
37 void SetCost(Uint8 c) { cost = c; }
38 void SetMagical() { isPhysical = false; }
39 void SetPhysical() { isPhysical = true; }
41 static void CreateTypeDescription();
42 static void Construct(void *);
48 TargetingMode targetingMode;
56 #endif /* COMMON_IKARI_H_ */