Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public DragonActionFactory(DragonX dragon, GameEngine gameEngine)
 {
     _dragon     = dragon;
     _gameEngine = gameEngine;
 }