Beispiel #1
0
 public Dwarf(String name, int hP, Axe weapon, Chestplate armor, int baseAttackPower, int baseDefensePower, int baseHealingPower)
 {
     this.Name             = name;
     this.HP               = hP;
     this.Weapon           = weapon;
     this.Armor            = armor;
     this.baseAttackPower  = baseAttackPower;
     this.baseDefensePower = baseDefensePower;
     this.baseHealingPower = baseHealingPower;
 }
Beispiel #2
0
 public void ChangeChestplate(Chestplate newchestplate)
 {
     this.RemoveChestplate();
     this.Armor = newchestplate;
 }
Beispiel #3
0
 public void RemoveChestplate()
 {
     this.Armor = null;
 }