public void DestroyShip(Ship target) { this.IsDestroyed = true; }
protected void DestroyTarget(Ship target) { target.IsDestroyed = true; }
public abstract string Attack(Ship targetShip);
public abstract string Attack(Ship ship);
public void Attack(Ship targetShip) { targetShip.IsDestroyed = true; }
public override string Attack(Ship targetShip) { this.DestroyShip(targetShip); return "We swiped them away"; }
public override string Attack(Ship ship) { return "Victory is ours!"; }
public string Attack(Ship targetShip) { this.DestroyShip(targetShip); return "Target is destroyed. We bombed them from the sky!"; }
private void DestroyShip(Ship targetShip) { }
public override string Attack(Ship ship) { return "We bombed them from the sky!"; }
public override string Attack(Ship targetShip) { this.DestroyShip(targetShip); return "You got Warrshipped"; }
public void DestroyShip(Ship target) { target.IsDestroyed = true; }
public bool ShipIsSunk(Ship ship) { return ship.Health == 0; }
public override string Attack(Ship ship) { return "They didn't see us coming!"; }
public void Attack(Ship targetShip) { }
protected abstract Ship DestroyTarget(Ship target);
public override string Attack(Ship target) { this.DestroyShip(target); return "Victory is ours!"; }
public override string Attack(Ship targetShip) { this.DestroyShip(targetShip); return "We bombed them from the sky!"; }
public override string Attack(Ship targetShip) { this.DestroyTarget(targetShip); return "They didn't see us coming!"; }
public override string Attack(Ship targetShip) { this.DestroyShip(targetShip); return AttackMsg; }
protected void DestroyShip(Ship targShip) { targShip.IsDestroyed = true; }