Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
        }