Пример #1
0
        public static DragonX CreateWhite(Location.Location initialLocation, GameEngine gameEngine)
        {
            var whiteDragon = new DragonX(PlayerColor.White, initialLocation, Direction.South, gameEngine);

            whiteDragon.CreateAction().TurnLeft().Execute();
            whiteDragon.CreateAction().TurnLeft().Execute();
            whiteDragon.CreateAction().TurnLeft().Execute();
            whiteDragon.CreateAction().TurnLeft().Execute();

            return(whiteDragon);
        }
Пример #2
0
        public static DragonX CreateBlack(Location.Location initialLocation, GameEngine gameEngine)
        {
            var blackDragon = new DragonX(PlayerColor.Black, initialLocation, Direction.West, gameEngine);

            blackDragon.CreateAction().TurnRight().Execute();
            blackDragon.CreateAction().TurnRight().Execute();
            blackDragon.CreateAction().TurnRight().Execute();
            blackDragon.CreateAction().TurnRight().Execute();

            return(blackDragon);
        }
Пример #3
0
 public DragonActionFactory(DragonX dragon, GameEngine gameEngine)
 {
     _dragon     = dragon;
     _gameEngine = gameEngine;
 }