From 0cac609857bb19e8342e375fa943c87dad58453f Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 28 Aug 2012 21:36:10 +0200 Subject: [PATCH] added setters for stats --- src/battle/Stats.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.2