public StartGameCommand(GameService gameService, UserService userService, BoardOutputService boardOutputService, TetrominoService tetrominoService, CurrentTetrominoService currentTetrominoService, BoardService boardService) { this.gameService = gameService; this.userService = userService; this.boardOutputService = boardOutputService; this.tetrominoService = tetrominoService; this.currentTetrominoService = currentTetrominoService; this.boardService = boardService; }
public CommandParser() { this.menuService = new MenuService(); this.gameService = new GameService(); this.currentTetrominoService = new CurrentTetrominoService(); this.menuService = new MenuService(); this.boardOutputService = new BoardOutputService(); this.tetrominoService = new TetrominoService(); this.userService = new UserService(); this.boardService = new BoardService(); this.highScoreService = new HighScoreService(); }