示例#1
0
文件: Board.cs 项目: Netvon/Baricade
        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;
        }
示例#2
0
文件: Board.cs 项目: Netvon/Baricade
        void AddBaricade(ContainerField b1)
        {
#if !NOBARICADE
            b1.Child = new Movables.Baricade();
            b1.Child.StandingOn = b1;
#endif
        }