Exemplo n.º 1
0
 public GameCommand(LabyrinthProcesor labyrinthProcesor, IScoreBoardObserver scoreboardHandler, IRenderer renderer, IPlayer player, string command)
 {
     this.labyrinthProcesor = labyrinthProcesor;
     this.scoreboardHandler = scoreboardHandler;
     this.renderer = renderer;
     this.player = player;
     this.command = command;
 }
Exemplo n.º 2
0
 public Game SetupGame(SimpleConsoleGameBuilder objectBuilder)
 {
     this.renderer = objectBuilder.CreteRenderer();
     this.player = objectBuilder.CreatePlayer();
     this.scoreBoardHandler = objectBuilder.CreteScoreBoardHanler();
     this.procesor = new LabyrinthProcesor(this.renderer, this.player, this.scoreBoardHandler);
     return Game.Instance(this.player, this.renderer, this.scoreBoardHandler, this.procesor);
 }