예제 #1
0
 protected void Destroy(Ship targetShip)
 {
     targetShip.IsDestroyed = true;
 }
예제 #2
0
 public abstract string Attack(Ship targetShip);
예제 #3
0
파일: Warship.cs 프로젝트: HouseBreaker/OOP
        public override string Attack(Ship targetShip)
        {
            this.Destroy(targetShip);

            return "Victory is ours!";
        }
예제 #4
0
 public override string Attack(Ship targetShip)
 {
     this.Destroy(targetShip);
     return "We bombed them from the sky!";
 }
예제 #5
0
        public override string Attack(Ship targetShip)
        {
            this.Destroy(targetShip);

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