public RoundHandler(FieldHandler fieldHandler) { this.fieldHandler = fieldHandler; }
public GameStateController(FieldHandler fieldHandler, GameState gameState) { this.gameState = gameState; this.fieldHandler = fieldHandler; }
private void startGame_Click(object sender, EventArgs e) { EffectHandler effectHandler = new EffectHandler(); field = new Field(); FieldHandler fieldHandler = new FieldHandler(field, effectHandler); GameState gameState = new GameState(); gameStateController = new GameStateController(fieldHandler, gameState); clearBoard(); gameStateController.StartTheGame(); player1name.Text = gameStateController.gameState.player1.Name; player2name.Text = gameStateController.gameState.player2.Name; UpdateField(); DisplayCardList(); UnlockAllButton(); }