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