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; }
void AddBaricade(ContainerField b1) { #if !NOBARICADE b1.Child = new Movables.Baricade(); b1.Child.StandingOn = b1; #endif }