Beispiel #1
0
 public void Dispose()
 {
     if (_gc != IntPtr.Zero)
     {
         DecisionMakingDll.ReleaseGameContext(_gc);
         _gc = IntPtr.Zero;
     }
 }
Beispiel #2
0
        public void CutCheckBet(ActionType actionType, Street street, Board board, float betChance, DecisionMakingContext dmContext)
        {
            CuttingParams.Add(new CuttingParamsT
            {
                ActionType = actionType,
                Street     = street,
                Value1     = betChance,
                Forced     = false
            });

            DecisionMakingDll.CutRange_CheckBet(this, actionType, street, board, betChance, dmContext);
        }
Beispiel #3
0
        public void CutFoldCallRaise(ActionType actionType, Street street, Board board, float raiseChance, float callChance, DecisionMakingContext dmContext)
        {
            CuttingParams.Add(new CuttingParamsT
            {
                ActionType = actionType,
                Street     = street,
                Value1     = raiseChance,
                Value2     = callChance,
                Forced     = true
            });

            DecisionMakingDll.CutRange_FoldCallRaise(this, actionType, street, board, raiseChance, callChance, dmContext);
        }
Beispiel #4
0
 public DecisionMakingContext()
 {
     _gc = DecisionMakingDll.CreateGameContext();
 }