コード例 #1
0
        public override string Attack(Ship targetShip)
        {
            this.DestroyShip(targetShip);

            return "We bombed them from the sky!";
        }
コード例 #2
0
 public abstract string Attack(Ship target);
コード例 #3
0
 protected void DestroyShip(Ship targetShip)
 {
     targetShip.IsDestroyed = true;
 }
コード例 #4
0
        public override string Attack(Ship targetShip)
        {
            this.DestroyShip(targetShip);

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