C# Класс holdem_engine.Pot

A pot is defined as an amount of money which is currently able to be won by only those who are eligible. Author: Wesley Tansey
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( double amount ) : void

Adds money to the pot.

AddPlayer ( int playerIdx, double amount ) : void

Adds a player to the pot.

GetWinners ( uint handStrengths, List winners ) : void

Gets the winners of this pot according to the given dictionary of players' hand strengths. Winners are added to the winner list.

Pot ( string potName, Seat players ) : System

Creates a new, empty Pot with the given name.

RemovePlayer ( int playerIdx ) : void

Removes a player from this pot, but keeps his money in there.

Описание методов

Add() публичный Метод

Adds money to the pot.
public Add ( double amount ) : void
amount double
Результат void

AddPlayer() публичный Метод

Adds a player to the pot.
public AddPlayer ( int playerIdx, double amount ) : void
playerIdx int
amount double
Результат void

GetWinners() публичный Метод

Gets the winners of this pot according to the given dictionary of players' hand strengths. Winners are added to the winner list.
public GetWinners ( uint handStrengths, List winners ) : void
handStrengths uint An array of player hand strengths at showdown
winners List A list of winners to which to add the winners of this pot.
Результат void

Pot() публичный Метод

Creates a new, empty Pot with the given name.
public Pot ( string potName, Seat players ) : System
potName string
players Seat
Результат System

RemovePlayer() публичный Метод

Removes a player from this pot, but keeps his money in there.
public RemovePlayer ( int playerIdx ) : void
playerIdx int
Результат void