void CreateBoard(Game game) { var origin = new BottomField(); origin.Row = 1; origin.Column = 0; // Bottom Row BaseField first = CreateBottomRow(origin); // Spawn points CreateSpawnPoints(game, first); // Second Row BaseField second = CreateSecondRow(first); // Third Row BaseField third = CreateThridRow(second); // Fourth Row BaseField fourth = CreateFourthRow(third); // Fifth Row BaseField fifth = CreateFifthRow(fourth); // Sixth Row BaseField sixth = CreateSixthRow(fifth); // Seventh Row BaseField seventh = CreateSeventhRow(sixth); Finish = seventh.GetField(Direction.Right, 4) .AddField(Direction.Up, new FinishField()).GetField(Direction.Up) as ContainerField; Origin = origin; }
BaseField CreateBottomRow(BottomField origin) { return(origin.AddField(Direction.Right, 10, typeof(BottomField))); }