From: Daniel Karbach Date: Tue, 28 Aug 2012 19:36:10 +0000 (+0200) Subject: added setters for stats X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=0cac609857bb19e8342e375fa943c87dad58453f;p=l2e.git added setters for stats --- diff --git a/src/battle/Stats.h b/src/battle/Stats.h index b935e02..ae885bf 100644 --- a/src/battle/Stats.h +++ b/src/battle/Stats.h @@ -27,6 +27,14 @@ public: Uint8 Gut() const { return gut; } Uint16 MagicResistance() const { return magicResistance; } + void SetAttack(Uint16 a) { attack = a; } + void SetDefense(Uint16 d) { defense = d; } + void SetStrength(Uint16 s) { strength = s; } + void SetAgility(Uint16 a) { agility = a; } + void SetIntelligence(Uint16 i) { intelligence = i; } + void SetGut(Uint8 g) { gut = g; } + void SetMagicResistance(Uint16 m) { magicResistance = m; } + private: Uint16 attack; Uint16 defense;