-/*
- * Ikari.h
- *
- * Created on: Aug 10, 2012
- * Author: holy
- */
-
#ifndef COMMON_IKARI_H_
#define COMMON_IKARI_H_
// TODO: looks like Ikari and Spell have _quite_ a lot in common…
class Ikari {
+public:
+ static const int TYPE_ID = 302;
+
public:
Ikari();
TargetingMode &GetTargetingMode() { return targetingMode; }
const TargetingMode &GetTargetingMode() const { return targetingMode; }
- // TODO: add missing ikari properties
+ bool IsMagical() const { return !isPhysical; }
+ bool IsPhysical() const { return isPhysical; }
// temporary setters
public:
void SetName(const char *n) { name = n; }
void SetCost(Uint8 c) { cost = c; }
+ void SetMagical() { isPhysical = false; }
+ void SetPhysical() { isPhysical = true; }
+
+ static void CreateTypeDescription();
+ static void Construct(void *);
private:
const char *name;
- Uint8 cost;
+ int cost;
TargetingMode targetingMode;
+ bool isPhysical;
+
};
}