コード例 #1
0
 public void DestroyShip(Ship target)
 {
     this.IsDestroyed = true;
 }
コード例 #2
0
ファイル: Battleship.cs プロジェクト: AsenTahchiyski/SoftUni
 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
ファイル: Battleship.cs プロジェクト: TaTRaTa/SoftUni
 public abstract string Attack(Ship targetShip);
コード例 #7
0
ファイル: Destroyer.cs プロジェクト: AlexanderDimitrov/OOP
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "We swiped them away";
 }
コード例 #8
0
ファイル: Warship.cs プロジェクト: eslavov11/SoftUni-Homework
 public override string Attack(Ship ship)
 {
     return "Victory is ours!";
 }
コード例 #9
0
ファイル: BattleShip.cs プロジェクト: sashkooooy/MyRepo
 public string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "Target is destroyed. We bombed them from the sky!";
 }
コード例 #10
0
ファイル: BattleShip.cs プロジェクト: sashkooooy/MyRepo
 private void DestroyShip(Ship targetShip)
 {
 }
コード例 #11
0
 public override string Attack(Ship ship)
 {
     return "We bombed them from the sky!";
 }
コード例 #12
0
ファイル: Warship.cs プロジェクト: AlexanderDimitrov/OOP
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "You got Warrshipped";
 }
コード例 #13
0
 public void DestroyShip(Ship target)
 {
     target.IsDestroyed = true;
 }
コード例 #14
0
 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
ファイル: Battleship.cs プロジェクト: peterborisov/CSharp
 public void Attack(Ship targetShip)
 {
 }
コード例 #17
0
ファイル: Battleship.cs プロジェクト: ivelina-penkova/CSharp
 protected abstract Ship DestroyTarget(Ship target);
コード例 #18
0
ファイル: Warship.cs プロジェクト: alvelchev/SoftUni
        public override string Attack(Ship target)
        {
            this.DestroyShip(target);

            return "Victory is ours!";
        }
コード例 #19
0
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return "We bombed them from the sky!";
 }
コード例 #20
0
ファイル: Destroyer.cs プロジェクト: AsenTahchiyski/SoftUni
 public override string Attack(Ship targetShip)
 {
     this.DestroyTarget(targetShip);
     return "They didn't see us coming!";
 }
コード例 #21
0
ファイル: Destroyer.cs プロジェクト: plmng/SoftUni_OOP_HWs
 public override string Attack(Ship targetShip)
 {
     this.DestroyShip(targetShip);
     return AttackMsg;
 }
コード例 #22
0
ファイル: Battleship.cs プロジェクト: TaTRaTa/SoftUni
 protected void DestroyShip(Ship targShip)
 {
     targShip.IsDestroyed = true;
 }
コード例 #23
0
 public void Attack(Ship targetShip)
 {
     targetShip.IsDestroyed = true;
 }