1 #ifndef COMMON_IKARI_H_
2 #define COMMON_IKARI_H_
4 #include "TargetingMode.h"
8 // TODO: looks like Ikari and Spell have _quite_ a lot in common…
12 static const int TYPE_ID = 302;
18 const char *Name() const { return name; }
19 Uint8 Cost() const { return cost; }
21 TargetingMode &GetTargetingMode() { return targetingMode; }
22 const TargetingMode &GetTargetingMode() const { return targetingMode; }
24 bool IsMagical() const { return !isPhysical; }
25 bool IsPhysical() const { return isPhysical; }
29 void SetName(const char *n) { name = n; }
30 void SetCost(Uint8 c) { cost = c; }
31 void SetMagical() { isPhysical = false; }
32 void SetPhysical() { isPhysical = true; }
34 static void CreateTypeDescription();
35 static void Construct(void *);
41 TargetingMode targetingMode;