예제 #1
0
 public void DestroyShip(Ship target)
 {
     this.IsDestroyed = true;
 }
예제 #2
0
 protected void DestroyTarget(Ship target)
 {
     target.IsDestroyed = true;
 }
예제 #3
0
 public abstract string Attack(Ship targetShip);
예제 #4
0
 public abstract string Attack(Ship ship);
예제 #5
0
 public void Attack(Ship targetShip)
 {
     targetShip.IsDestroyed = true;
 }
예제 #6
0
 public abstract string Attack(Ship targetShip);
예제 #7
0
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "We swiped them away";
 }
예제 #8
0
 public override string Attack(Ship ship)
 {
     return "Victory is ours!";
 }
예제 #9
0
 public string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "Target is destroyed. We bombed them from the sky!";
 }
예제 #10
0
 private void DestroyShip(Ship targetShip)
 {
 }
예제 #11
0
 public override string Attack(Ship ship)
 {
     return "We bombed them from the sky!";
 }
예제 #12
0
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "You got Warrshipped";
 }
예제 #13
0
 public void DestroyShip(Ship target)
 {
     target.IsDestroyed = true;
 }
 public bool ShipIsSunk(Ship ship)
 {
     return ship.Health == 0;
 }
예제 #15
0
 public override string Attack(Ship ship)
 {
     return "They didn't see us coming!";
 }
예제 #16
0
 public void Attack(Ship targetShip)
 {
 }
예제 #17
0
 protected abstract Ship DestroyTarget(Ship target);
예제 #18
0
        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!";
 }
예제 #20
0
 public override string Attack(Ship targetShip)
 {
     this.DestroyTarget(targetShip);
     return "They didn't see us coming!";
 }
예제 #21
0
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return AttackMsg;
 }
예제 #22
0
 protected void DestroyShip(Ship targShip)
 {
     targShip.IsDestroyed = true;
 }
예제 #23
0
 public void Attack(Ship targetShip)
 {
     targetShip.IsDestroyed = true;
 }