public void InitializeDirector() { this.RNG = new Random(); for (int jjj = 1; jjj < 3; jjj++) { for (int iii = 0; iii < 5; iii++) { this.Soldier = new SoldierShip(); this.Soldier.InitializeSoldierShip(jjj); this.Soldier.LoadContent(); if (jjj == 1) Globals.EnemyShipList1.Add(this.Soldier); else if (jjj == 2) Globals.EnemyShipList2.Add(this.Soldier); } for (int iii = 0; iii < 3; iii++) { this.Sniper = new SniperShip(); this.Sniper.InitializeSniperShip(jjj); this.Sniper.LoadContent(); if (jjj == 1) Globals.EnemyShipList1.Add(this.Sniper); else if (jjj == 2) Globals.EnemyShipList2.Add(this.Sniper); } for (int iii = 0; iii < 3; iii++) { this.Tank = new TankShip(); this.Tank.InitializeTankShip(jjj); this.Tank.LoadContent(); if (jjj == 1) Globals.EnemyShipList1.Add(this.Tank); else if (jjj == 2) Globals.EnemyShipList2.Add(this.Tank); } for (int iii = 0; iii < 5; iii++) { this.Scout = new ScoutShip(); this.Scout.InitializeScoutShip(jjj); this.Scout.LoadContent(); if (jjj == 1) Globals.EnemyShipList1.Add(this.Scout); else if (jjj == 2) Globals.EnemyShipList2.Add(this.Scout); } } }
void CreateRandomShip() { for (int iii = 1; iii < 3; iii++) { int RandomShip = this.RNG.Next(1, 5); if (RandomShip == 1) { this.Soldier = new SoldierShip(); this.Soldier.InitializeSoldierShip(iii); this.Soldier.LoadContent(); if (iii == 1) Globals.EnemyShipList1.Add(this.Soldier); else if (iii == 2) Globals.EnemyShipList2.Add(this.Soldier); } else if (RandomShip == 2) { this.Sniper = new SniperShip(); this.Sniper.InitializeSniperShip(iii); this.Sniper.LoadContent(); if (iii == 1) Globals.EnemyShipList1.Add(this.Sniper); else if (iii == 2) Globals.EnemyShipList2.Add(this.Sniper); } else if (RandomShip == 3) { this.Tank = new TankShip(); this.Tank.InitializeTankShip(iii); this.Tank.LoadContent(); if (iii == 1) Globals.EnemyShipList1.Add(this.Tank); else if (iii == 2) Globals.EnemyShipList2.Add(this.Tank); } else if (RandomShip == 4) { this.Scout = new ScoutShip(); this.Scout.InitializeScoutShip(iii); this.Scout.LoadContent(); if (iii == 1) Globals.EnemyShipList1.Add(this.Scout); else if (iii == 2) Globals.EnemyShipList2.Add(this.Scout); } } }