public void Dispose() { if (_gc != IntPtr.Zero) { DecisionMakingDll.ReleaseGameContext(_gc); _gc = IntPtr.Zero; } }
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); }
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); }
public DecisionMakingContext() { _gc = DecisionMakingDll.CreateGameContext(); }