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