Esempio n. 1
0
        private void OnPlayerTurnEvent(GamePlayerModel model)
        {
            currentGamePlayer = model;
            bool isBlind = currentGamePlayer.roomStage == (int)Stage.PreFlop && currentGamePlayer.betCount <= 1;

            if (isBlind == false && model.lastBetType != GamePlayerModel.BetType.Allin && model.lastBetType != GamePlayerModel.BetType.Fold)
            {
                view.SetCallButton(model.betCount != 0, manager.Room.stageBet - model.stageBet);

                view.EnableAllButtons(true);

                view.EnableCallButton(model.betCount != 0);
                view.EnableCheckButton(model.betCount == 0);

                isClickable = true;
            }
            else
            {
                view.EnableAllButtons(false);
            }
        }