public override string Attack(Ship targetShip)
        {
            this.DestroyShip(targetShip);

            return "We bombed them from the sky!";
        }
 public abstract string Attack(Ship target);
 protected void DestroyShip(Ship targetShip)
 {
     targetShip.IsDestroyed = true;
 }
Esempio n. 4
0
        public override string Attack(Ship targetShip)
        {
            this.DestroyShip(targetShip);

            return "They didn't see us coming!";
        }