]> git.localhorst.tv Git - l2e.git/blob - src/common/Ikari.h
added physical/magical status of ikari attacks
[l2e.git] / src / common / Ikari.h
1 /*
2  * Ikari.h
3  *
4  *  Created on: Aug 10, 2012
5  *      Author: holy
6  */
7
8 #ifndef COMMON_IKARI_H_
9 #define COMMON_IKARI_H_
10
11 #include "TargetingMode.h"
12
13 namespace common {
14
15 // TODO: looks like Ikari and Spell have _quite_ a lot in common…
16 class Ikari {
17
18 public:
19         Ikari();
20
21 public:
22         const char *Name() const { return name; }
23         Uint8 Cost() const { return cost; }
24
25         TargetingMode &GetTargetingMode() { return targetingMode; }
26         const TargetingMode &GetTargetingMode() const { return targetingMode; }
27
28         bool IsMagical() const { return !isPhysical; }
29         bool IsPhysical() const { return isPhysical; }
30
31         // TODO: add missing ikari properties
32
33 // temporary setters
34 public:
35         void SetName(const char *n) { name = n; }
36         void SetCost(Uint8 c) { cost = c; }
37         void SetMagical() { isPhysical = false; }
38         void SetPhysical() { isPhysical = true; }
39
40 private:
41         const char *name;
42
43         Uint8 cost;
44         TargetingMode targetingMode;
45
46         bool isPhysical;
47
48 };
49
50 }
51
52 #endif /* COMMON_IKARI_H_ */