Пример #1
0
 public void DismountGunner(M1025 humvee, string[,] AO)
 {
     if (status != "KIA")
     {
         if (humvee._Gunner.name == this.name)
         {
             humvee.DismountGunner(this, AO);
         }
         else
         {
             Console.WriteLine($"{name} is not the Gunner in {humvee.name}");
         }
     }
     else
     {
         Console.WriteLine($"{name} is KIA");
     }
 }
Пример #2
0
 public void DismountHumveePassenger(M1025 humvee, string[,] AO)
 {
     if (status != "KIA")
     {
         if (this.myvec.name == humvee.name && this.name != humvee.AOperator.name && this.name != humvee.Operator.name)
         {
             humvee.Dismount(this, AO);
         }
         else
         {
             Console.WriteLine($"{name} is not in passenger seat of {humvee.name}");
         }
     }
     else
     {
         Console.WriteLine($"{name} is KIA");
     }
 }
Пример #3
0
 public void MountGunner(M1025 humvee, string[,] AO)
 {
     if (status != "KIA")
     {
         if (myvec == null)
         {
             humvee.MountGunner(this, AO);
         }
         else
         {
             Console.WriteLine($"{name} is in {myvec.name}");
         }
     }
     else
     {
         Console.WriteLine($"{name} is KIA");
     }
 }
Пример #4
0
 public void DismountHumveeAOperator(M1025 humvee, string[,] AO)
 {
     if (status != "KIA")
     {
         if (humvee.AOperator.name == this.name)
         {
             humvee.dismountA(this, AO);
         }
         else
         {
             Console.WriteLine($"{name} is not the A driver in {humvee.name}");
         }
     }
     else
     {
         Console.WriteLine($"{name} is KIA");
     }
 }