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(); }
public FieldHandler(Field field, EffectHandler effectHandler) { this.field = field; this.effectHandler = effectHandler; }