public Client(Game game) { _game = game; DefaultState = new DefaultState(_game); BlackJackState = new BlackJackState(); WinPointsState = new WinPointsState(); LosePointsState = new LosePointsState(); PushState = new PushState(); OverflowState = new OverflowState(); SetState(DefaultState); }
public Croupier(Game game, int nameIndex) { _game = game; Name = ((CroupierNamesEnum)nameIndex).ToString(); DefaultState = new DefaultState(_game); BlackJackState = new BlackJackState(); WinPointsState = new WinPointsState(); LosePointsState = new LosePointsState(); PushState = new PushState(); OverflowState = new OverflowState(); SetState(DefaultState); }