public Archerman(IWeapon weapon, IRefillBehavior refillBehavior, IRepairBehavior repairBehavior) : base(weapon, refillBehavior, repairBehavior) { this.hitPoints = 20; Console.WriteLine("Archerman created."); }
public Paladin(IWeapon weapon, IRefillBehavior refillBehavior, IRepairBehavior repairBehavior) : base(weapon, refillBehavior, repairBehavior) { this.hitPoints = 80; Console.WriteLine("Paladin created."); }
public void ChangeRefill(IRefillBehavior refillBehavior) { this.refillBehavior = refillBehavior; }
public Robot(IWeapon weapon, IRefillBehavior refillBehavior, IRepairBehavior repairBehavior) : base(weapon, refillBehavior, repairBehavior) { this.hitPoints = 150; Console.WriteLine("Robot created."); }
public Soldier(IWeapon weapon, IRefillBehavior refillBehavior, IRepairBehavior repairBehavior) { this.weapon = weapon; this.repairBehavior = repairBehavior; this.refillBehavior = refillBehavior; }