public Game StartGame(Action<string> eventHandler, IPlayersController playersController, params string[] players) { if (playersController == null) playersController = new DummyPlayersContoller(); Game game = new Game(eventHandler, playersController); foreach (var player in players) { game.add(player); } return game; }
public Game(Action<string> actionHandler, IPlayersController playerController) { _actionHandler = actionHandler; _playersController = playerController; for (int i = 0; i < 50; i++) { _popQuestions.AddLast("Pop Question " + i); _scienceQuestions.AddLast(("Science Question " + i)); _sportsQuestions.AddLast(("Sports Question " + i)); _rockQuestions.AddLast(createRockQuestion(i)); } }
public void Start() { this.playerController = new PlayersController(); playerController.AddListener(this); MasterController.instance.registerAsSceneController(this); }