]> git.localhorst.tv Git - l2e.git/blob - src/common/Ikari.h
added Ikari class
[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         // TODO: add missing ikari properties
29
30 // temporary setters
31 public:
32         void SetName(const char *n) { name = n; }
33         void SetCost(Uint8 c) { cost = c; }
34
35 private:
36         const char *name;
37
38         Uint8 cost;
39         TargetingMode targetingMode;
40
41 };
42
43 }
44
45 #endif /* COMMON_IKARI_H_ */