Example #1
0
 // LandBaseListとLeaveLandBaseAirsListをLandBaseAirsListから作成する
 private static void MakeLists(LandBaseAirsList airsList, out LandBaseList landBaseList, out LeaveLandBaseAirsList landBaseLeaveAirsList)
 {
     landBaseList          = new LandBaseList();
     landBaseLeaveAirsList = new LeaveLandBaseAirsList();
     for (int i = 0; i < airsList.Count; ++i)
     {
         var tempList = new List <List <int> >();
         landBaseList.Add(0);
         for (int j = 0; j < airsList[i].Count; ++j)
         {
             var tempList2 = Enumerable.Repeat(0, airsList[i][j] + 1).ToList();
             tempList.Add(tempList2);
         }
         landBaseLeaveAirsList.Add(tempList);
     }
 }
Example #2
0
 // 記録する
 private static void MemoLeaveList(LandBase landBase, LandBaseAirsList landBaseAirsList, LandBaseList landBaseList, LeaveLandBaseAirsList landBaseLeaveAirsList)
 {
     for (int ti = 0; ti < landBaseAirsList.Count; ++ti)
     {
         bool allBrokenFlg = true;
         bool hasPAPBWB    = false;
         for (int wi = 0; wi < landBase.Team[ti].Weapon.Count; ++wi)
         {
             if (landBase.Team[ti].Weapon[wi].IsStage2X)
             {
                 hasPAPBWB = true;
                 if (landBaseAirsList[ti][wi] != 0)
                 {
                     allBrokenFlg = false;
                 }
             }
             ++landBaseLeaveAirsList[ti][wi][landBaseAirsList[ti][wi]];
         }
         if (allBrokenFlg && hasPAPBWB)
         {
             ++landBaseList[ti];
         }
     }
 }