Beispiel #1
0
 /// <summary>
 /// generate lands.
 /// </summary>
 private void InitializeGame()
 {
     AllLineModels.Clear();
     AllPuzzleModels.Clear();
     _predicatedFlowSidePositionDict.Clear();
     _predicatedFlowDownPositions.Clear();
     _alignedPuzzles.Clear();
 }
Beispiel #2
0
 /// <summary>
 /// 배열 세팅.
 /// </summary>
 private void CreateLines()
 {
     AllLineModels.Clear();
     AllLineModels.Add(0, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Hide),
             new LandModel(1, LandTypes.Hide),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Hide),
         },
         IsCreateLine = false,
     });
     AllLineModels.Add(1, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Hide),
             new LandModel(1, LandTypes.Show),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Hide),
         },
         IsCreateLine = true,
     });
     AllLineModels.Add(2, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Hide),
             new LandModel(1, LandTypes.Show),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Show),
         },
         IsCreateLine = true,
     });
     AllLineModels.Add(3, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Show),
             new LandModel(1, LandTypes.Show),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Show),
         },
         IsCreateLine = true,
     });
     AllLineModels.Add(4, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Hide),
             new LandModel(1, LandTypes.Show),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Show),
         },
         IsCreateLine = true,
     });
     AllLineModels.Add(5, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Hide),
             new LandModel(1, LandTypes.Show),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Hide),
         },
         IsCreateLine = true,
     });
     AllLineModels.Add(6, new LineModel
     {
         LandDatas = new List <LandModel>
         {
             new LandModel(0, LandTypes.Hide),
             new LandModel(1, LandTypes.Hide),
             new LandModel(2, LandTypes.Show),
             new LandModel(3, LandTypes.Show),
             new LandModel(4, LandTypes.Show),
             new LandModel(5, LandTypes.Hide),
         },
         IsCreateLine = false,
     });
 }