示例#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;
 }
示例#2
0
 public void ChangeChestplate(Chestplate newchestplate)
 {
     this.RemoveChestplate();
     this.Armor = newchestplate;
 }
示例#3
0
 public void RemoveChestplate()
 {
     this.Armor = null;
 }