4 * Created on: Aug 19, 2012
8 #ifndef COMMON_STATS_H_
9 #define COMMON_STATS_H_
18 static const int TYPE_ID = 305;
22 Stats(Uint16 attack, Uint16 defense, Uint16 strength, Uint16 agility, Uint16 intelligence, Uint8 gut, Uint16 magicResistance);
25 Uint16 Attack() const { return attack; }
26 Uint16 Defense() const { return defense; }
27 Uint16 Strength() const { return strength; }
28 Uint16 Agility() const { return agility; }
29 Uint16 Intelligence() const { return intelligence; }
30 Uint8 Gut() const { return gut; }
31 Uint16 MagicResistance() const { return magicResistance; }
33 void SetAttack(Uint16 a) { attack = a; }
34 void SetDefense(Uint16 d) { defense = d; }
35 void SetStrength(Uint16 s) { strength = s; }
36 void SetAgility(Uint16 a) { agility = a; }
37 void SetIntelligence(Uint16 i) { intelligence = i; }
38 void SetGut(Uint8 g) { gut = g; }
39 void SetMagicResistance(Uint16 m) { magicResistance = m; }
41 static void CreateTypeDescription();
42 static void Construct(void *);
57 #endif /* COMMON_STATS_H_ */