Exemplo n.º 1
0
 private void InitialCreateingTroop()
 {
     if (this.ShellMilitaryKind == null)
     {
         if (this.CreatingArchitecture.GetCampaignMilitaryList().Count == 1)
         {
             this.CreatingTroop = Troop.CreateSimulateTroop(this.CreatingArchitecture, this.CreatingPersons, this.CreatingLeader, this.CreatingMilitary, this.RationDays, this.CreatingArchitecture.Position);
             this.MoveCandidatesToPersons();
             this.CreatingMilitary = this.CreatingArchitecture.CampaignMilitaryList[0] as Military;
             this.AfterSelectMilitary();
         }
     }
     else
     {
         this.CreatingMilitary = Military.SimCreate(this.screen.Scenario, this.CreatingArchitecture, this.ShellMilitaryKind);
         if (this.CreatingArchitecture.GetCampaignMilitaryList().Count == 1)
         {
             this.CreatingTroop = Troop.CreateSimulateTroop(this.CreatingArchitecture, this.CreatingPersons, this.CreatingLeader, this.CreatingMilitary, this.RationDays, this.CreatingArchitecture.Position);
             this.MoveCandidatesToPersons();
             this.CreatingMilitary.SetShelledMilitary(this.CreatingArchitecture.CampaignMilitaryList[0] as Military);
             this.AfterSelectMilitary();
         }
     }
     this.RefreshDetailDisplay();
 }