Example #1
0
 //前方 空中地雷
 public void QianfangKonglei()
 {
     if (IsStopQianfangKonglei)
     {
         return;
     }
     if (_Kongleiishi != null)
     {
         if (_Kongleiishi.IsJishiOver())
         {
             int rNums = GlobalTools.GetRandomNum();
             if (rNums < 20)
             {
                 ShowKonglei(5);
                 ShowKonglei(5, 100);
                 ShowKonglei(5, 200);
             }
             else if (rNums < 40)
             {
                 ShowKonglei(2 + GlobalTools.GetRandomNum(4));
             }
             else
             {
                 ShowKonglei(2);
             }
         }
     }
 }
Example #2
0
 public void GZDD()
 {
     if (IsStopGZDD)
     {
         return;
     }
     if (_genzongDDJishi != null)
     {
         if (_genzongDDJishi.IsJishiOver())
         {
             int rNums = GlobalTools.GetRandomNum();
             if (rNums < 10)
             {
                 ShowJiguanObj(2, 0, GZDaodanName, false);
             }
             else if (rNums < 40)
             {
                 ShowJiguanObj(1, 0, GZDaodanName, false);
             }
             else
             {
                 ShowJiguanObj(1, 0, GZDaodanName, false);
             }
         }
     }
 }
Example #3
0
 public void Feixingqi2()
 {
     if (IsStopFeixingqi2)
     {
         return;
     }
     if (_feixingqi1Jishi2 != null)
     {
         if (_feixingqi1Jishi2.IsJishiOver())
         {
             int rNums = GlobalTools.GetRandomNum();
             if (rNums < 20)
             {
                 ShowJiguanObj(1, 0, Feixingqi2Name, true, true);
             }
             else if (rNums < 60)
             {
                 ShowJiguanObj(1, 0, Feixingqi2Name, true, true);
             }
             else
             {
                 ShowJiguanObj(2, 0, Feixingqi2Name, true, true);
             }
         }
     }
 }
Example #4
0
 //发射 后方 导弹
 public void FasheHoufangDaodan()
 {
     if (IsStopFasheHoufangDaodan)
     {
         return;
     }
     if (_houfangDaodanJishi != null)
     {
         if (_houfangDaodanJishi.IsJishiOver())
         {
             print(" 计时完成!!!!!!! ");
             int rNums = GlobalTools.GetRandomNum();
             if (rNums < 30)
             {
                 FasheHoufangDaodan(5);
             }
             else if (rNums < 60)
             {
                 FasheHoufangDaodan(2 + GlobalTools.GetRandomNum(4));
             }
             else
             {
                 FasheHoufangDaodan(2);
             }
         }
     }
 }
Example #5
0
 public void Feixingqi1()
 {
     if (IsStopFeixingqi1)
     {
         return;
     }
     if (_feixingqi1Jishi1 != null)
     {
         if (_feixingqi1Jishi1.IsJishiOver())
         {
             int rNums = GlobalTools.GetRandomNum();
             if (rNums < 20)
             {
                 ShowJiguanObj(1, 0, Feixingqi1Name, true, true);
             }
             else if (rNums < 40)
             {
                 ShowJiguanObj(1, 0, Feixingqi1Name, true, true);
             }
             else
             {
                 ShowJiguanObj(2, 0, Feixingqi1Name, true, true);
             }
             print("     feixingqi a  a a a a a  " + rNums);
         }
     }
 }
Example #6
0
 public void BianjieKonglei()
 {
     if (IsStopBianjieKonglei1)
     {
         return;
     }
     if (_bianjieKonglei != null)
     {
         if (_bianjieKonglei.IsJishiOver())
         {
             BianjieKongleis();
         }
     }
 }