Exemple #1
0
        public void Setup()
        {
            TheWorld = new World();

            // Create a 3 x 3 room
            // which is really a 4 x 4 because the walls occupy
            // a single square unit a piece.
            var floorPlan = Room.CreateEmptyRoom(5, 5);

            floorPlan[2][2] = new EntryPoint();
            floorPlan[1][2] = new ExitPoint();

            TheRoom = TheWorld.CreateRoom(floorPlan);

            TheWarrior = new DumbBot();
            TheWorld.CreateEntity(TheWarrior);
            TheWorld.EnterRoom(TheWarrior, TheRoom);

            Context();
            Because();
        }
        public void Setup()
        {
            TheWorld = new World();

            // Create a 3 x 3 room
            // which is really a 4 x 4 because the walls occupy
            // a single square unit a piece.
            var floorPlan = Room.CreateEmptyRoom(5, 5);
            floorPlan[2][2] = new EntryPoint();
            floorPlan[1][2] = new ExitPoint();

            TheRoom = TheWorld.CreateRoom(floorPlan);

            TheWarrior = new DumbBot();
            TheWorld.CreateEntity(TheWarrior);
            TheWorld.EnterRoom(TheWarrior, TheRoom);

            Context();
            Because();
        }