コード例 #1
0
        public void createShield()
        {
            int coste = 1;

            if (mainShieldBase.mirror == true)
            {
                coste += 4;
            }

            MainFabrics.createShield(coste);
        }
コード例 #2
0
 public void upgradeShields()
 {
     if (MainFabrics.publicShieldUpgradeNumber == 0)
     {
         MainFabrics.upgradeShields(3, 10);
     }
     else
     {
         MainFabrics.upgradeShields(6, 20);
     }
 }
コード例 #3
0
 void GameTimer_ticActivated(GameTimer obj)
 {
     if (obj.CurrentTime == 1)
     {
         MainFabrics.createSCV(0, 0);
         if (multiplay)
         {
             secondFabrics.createSCV(0, 0);
         }
     }
     if (!multiplay)
     {
         sheepsAppears();
         sheepsFires();
         moveBullets();
         moveSheeps();
     }
     else
     {
         moveBullets();
     }
 }
コード例 #4
0
 public void comprarPlasma()
 {
     MainFabrics.chargeWeapon(3, 10, 2, 3);
 }
コード例 #5
0
 public void comprarRocket()
 {
     MainFabrics.chargeWeapon(2, 10, 1, 5);
 }
コード例 #6
0
 public void comprarLacer()
 {
     MainFabrics.chargeWeapon(0, 10, 0, 10);
 }
コード例 #7
0
 public void createScv()
 {
     MainFabrics.createSCV(3, 10);
 }
コード例 #8
0
        void GameTimer_levelUp(GameTimer obj)
        {
            if (!multiplay)
            {
                currentLevel++;
                if (currentLevel == 13)
                {
                    while (activeNaves.Count != 0)
                    {
                        points += activeNaves[0].currentHp;
                        activeNaves[0].hiting(100);
                    }
                    points = points * 10;
                    onSendError("Juego ganado, puntaje: " + points);



                    onWinsGame();
                }

                switch (currentLevel)
                {
                case 2:
                    MainBaseNave[0].updateProvavilityAppears(0.3);
                    MainBaseNave[1].updateProvavilityAppears(0.3);
                    break;

                case 3:
                    MainBaseNave[0].updateProvavilityAppears(0.2);
                    MainBaseNave[1].updateProvavilityAppears(0.2);
                    MainBaseNave[2].updateProvavilityAppears(0.1);
                    break;

                case 4:
                    MainFabrics.createSCV(0, 0);
                    MainBaseNave[0].updateProvavilityAppears(0.1);
                    MainBaseNave[2].updateProvavilityAppears(0.2);
                    MainBaseNave[3].updateProvavilityAppears(0.1);
                    break;

                case 5:
                    MainCanon.weapons[0].charge(200);
                    MainCanon.weapons[1].charge(150);
                    MainCanon.weapons[2].charge(100);
                    MainCanon.weapons[3].charge(10);
                    MainFabrics.hiting(0 - 100);
                    MainCanon.hiting(0 - 100);
                    MainMineralMine.extractingMineral(0 - 500);
                    MainFabrics.takeMineral(200);

                    MainBaseNave[0].updateProvavilityAppears(-1);
                    MainBaseNave[1].updateProvavilityAppears(0.1);
                    MainBaseNave[3].updateProvavilityAppears(0.2);
                    MainBaseNave[4].updateProvavilityAppears(0.1);
                    break;

                case 6:
                    MainFabrics.createSCV(0, 0);
                    MainBaseNave[5].updateProvavilityAppears(0.1);
                    MainBaseNave[2].updateProvavilityAppears(0.1);
                    break;

                case 7:
                    MainFabrics.createSCV(0, 0);

                    MainBaseNave[0].updateProvavilityAppears(-1);
                    MainBaseNave[1].updateProvavilityAppears(-1);
                    MainBaseNave[2].updateProvavilityAppears(0.1);
                    MainBaseNave[3].updateProvavilityAppears(0.2);
                    MainBaseNave[4].updateProvavilityAppears(0.2);
                    MainBaseNave[5].updateProvavilityAppears(0.2);
                    MainBaseNave[6].updateProvavilityAppears(0.1);

                    break;

                case 8:
                    MainFabrics.createSCV(0, 0);
                    MainBaseNave[3].updateProvavilityAppears(0.1);
                    MainBaseNave[4].updateProvavilityAppears(0.1);
                    MainBaseNave[6].updateProvavilityAppears(0.2);
                    MainBaseNave[7].updateProvavilityAppears(0.1);

                    break;

                case 9:
                    MainFabrics.createSCV(0, 0);
                    MainBaseNave[8].updateProvavilityAppears(0.1);
                    MainBaseNave[7].updateProvavilityAppears(0.2);
                    MainBaseNave[2].updateProvavilityAppears(-1);

                    break;

                case 10:
                    MainFabrics.createSCV(0, 0);

                    MainBaseNave[3].updateProvavilityAppears(-1);

                    MainBaseNave[4].updateProvavilityAppears(0.1);
                    MainBaseNave[5].updateProvavilityAppears(0.1);
                    MainBaseNave[6].updateProvavilityAppears(0.2);
                    MainBaseNave[7].updateProvavilityAppears(0.2);
                    MainBaseNave[8].updateProvavilityAppears(0.2);
                    MainBaseNave[9].updateProvavilityAppears(0.1);

                    break;

                case 11:
                    MainBaseNave[9].updateProvavilityAppears(0.2);
                    MainBaseNave[5].updateProvavilityAppears(0.1);

                    break;

                default:

                    MainBaseNave[9].updateProvavilityAppears(0.9);
                    break;
                }
            }
        }
コード例 #9
0
 public void upgradeShieldMirror()
 {
     MainFabrics.upgradeMirror(15, 35);
 }
コード例 #10
0
 public void rechargeMineral()
 {
     MainFabrics.rechargeMineral(0, 30, 100);
 }
コード例 #11
0
 public void upgradeSuperScv()
 {
     MainFabrics.upradeScv(10, 50, 10, 1, 10);
 }
コード例 #12
0
 public void healCanon()
 {
     MainFabrics.healtCanon(0, 20, 10);
 }
コード例 #13
0
 public void ComprarNuke()
 {
     MainFabrics.chargeWeapon(8, 40, 3, 1);
 }