]> git.localhorst.tv Git - l2e.git/blob - src/common/Stats.h
620fc1d1cf4d537db99c45d3dd4db4aaa3020dc1
[l2e.git] / src / common / Stats.h
1 /*
2  * Stats.h
3  *
4  *  Created on: Aug 19, 2012
5  *      Author: holy
6  */
7
8 #ifndef COMMON_STATS_H_
9 #define COMMON_STATS_H_
10
11 #include <SDL.h>
12
13 namespace common {
14
15 class Stats {
16
17 public:
18         Stats();
19         Stats(Uint16 attack, Uint16 defense, Uint16 strength, Uint16 agility, Uint16 intelligence, Uint8 gut, Uint16 magicResistance);
20
21 public:
22         Uint16 Attack() const { return attack; }
23         Uint16 Defense() const { return defense; }
24         Uint16 Strength() const { return strength; }
25         Uint16 Agility() const { return agility; }
26         Uint16 Intelligence() const { return intelligence; }
27         Uint8 Gut() const { return gut; }
28         Uint16 MagicResistance() const { return magicResistance; }
29
30         void SetAttack(Uint16 a) { attack = a; }
31         void SetDefense(Uint16 d) { defense = d; }
32         void SetStrength(Uint16 s) { strength = s; }
33         void SetAgility(Uint16 a) { agility = a; }
34         void SetIntelligence(Uint16 i) { intelligence = i; }
35         void SetGut(Uint8 g) { gut = g; }
36         void SetMagicResistance(Uint16 m) { magicResistance = m; }
37
38         static void CreateTypeDescription();
39         static void Construct(void *);
40
41 private:
42         int attack;
43         int defense;
44         int strength;
45         int agility;
46         int intelligence;
47         int magicResistance;
48         int gut;
49
50 };
51
52 }
53
54 #endif /* COMMON_STATS_H_ */