]> git.localhorst.tv Git - l2e.git/commitdiff
added initializer lists to Hero and Monster models
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 8 Aug 2012 18:59:20 +0000 (20:59 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 8 Aug 2012 18:59:20 +0000 (20:59 +0200)
src/battle/Hero.cpp
src/battle/Monster.cpp

index faaf841bf7710139b1be6e475913e55d62eae9e7..3fbd320dc6e308d0e40651e4db1f66f239030f8b 100644 (file)
@@ -9,13 +9,28 @@
 
 namespace battle {
 
-Hero::Hero() {
-       // TODO Auto-generated constructor stub
+Hero::Hero()
+: name("")
+, sprite(0)
+
+, maxHealth(0)
+, health(0)
+, maxMana(0)
+, mana(0)
+
+, attack(0)
+, defense(0)
+, agility(0)
+, intelligence(0)
+, gut(0)
+, magicResistance(0)
+
+, level(0)
+, ip(0) {
 
 }
 
 Hero::~Hero() {
-       // TODO Auto-generated destructor stub
 
 }
 
index 1a52b7911004a7fb4e4d16a0a11a4f28d78bfc25..acbe6cf93bdacbd402eb4cff94ee6ce53396bb51 100644 (file)
@@ -9,14 +9,35 @@
 
 namespace battle {
 
-Monster::Monster() {
-       // TODO Auto-generated constructor stub
+Monster::Monster()
+: name("")
+, sprite(0)
+, dropItem(0)
+, attackScript(0)
+, defenseScript(0)
+
+, maxHealth(0)
+, health(0)
+, maxMana(0)
+, mana(0)
+
+, attack(0)
+, defense(0)
+, agility(0)
+, intelligence(0)
+, gut(0)
+, magicResistance(0)
+
+, expReward(0)
+, goldReward(0)
+
+, level(0)
+, dropChance(0) {
 
 }
 
 Monster::~Monster() {
-       // TODO Auto-generated destructor stub
 
 }
 
-} /* namespace battle */
+}