C# Class 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
Afficher le fichier Open project: tansey/holdem_engine

Méthodes publiques

Méthode Description
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.

Method Details

Add() public méthode

Adds money to the pot.
public Add ( double amount ) : void
amount double
Résultat void

AddPlayer() public méthode

Adds a player to the pot.
public AddPlayer ( int playerIdx, double amount ) : void
playerIdx int
amount double
Résultat void

GetWinners() public méthode

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.
Résultat void

Pot() public méthode

Creates a new, empty Pot with the given name.
public Pot ( string potName, Seat players ) : System
potName string
players Seat
Résultat System

RemovePlayer() public méthode

Removes a player from this pot, but keeps his money in there.
public RemovePlayer ( int playerIdx ) : void
playerIdx int
Résultat void