public void Call(Client c, string tableId) { NoLimitHoldem table = find(tableId); if (table == null) { c.Kill(); return; } if (!table.isHisPos(c)) { return; } table.tableData.currentAct.action = pokerActions.Call; }
public void Check(Client c, string tableId) { NoLimitHoldem table = find(tableId); if (table == null) { c.Kill(); return; } if (!table.isHisPos(c)) { return; } if (table.tableData.toCall != 0) { c.Kill(); return; } }
public void Bet(Client c, string tableId, int betAmount) { NoLimitHoldem table = find(tableId); if (table == null) { c.Kill(); return; } if (!table.isHisPos(c)) { return; } if (table.tableData.toCall > betAmount) { c.Kill(); return; } table.tableData.currentAct.action = pokerActions.Bet; table.tableData.currentAct.betAmount = betAmount; }