com.openholdem.structs
Class RuleSet

java.lang.Object
  extended by com.openholdem.structs.RuleSet

public class RuleSet
extends java.lang.Object

Version:
$Revision: 1.2 $

A set of rules that define a poker game instance.

Author:
mattmann

Nested Class Summary
 class RuleSet.HandRank
           
 
Constructor Summary
RuleSet()
          Construct a new Rule Set with default parameters
RuleSet(int npCards, int minCards, int maxCards, int nComm, java.util.SortedSet ranks)
           
 
Method Summary
 java.lang.String getFGameName()
           
 java.util.SortedSet getFHandRanks()
           
 int getFMaxHandCardsUsed()
           
 int getFMinHandCardsUsed()
           
 int getFNumCommunityCards()
           
 int getFNumPlayerCards()
           
 void setFGameName(java.lang.String gameName)
           
 void setFHandRanks(java.util.SortedSet handRanks)
           
 void setFMaxHandCardsUsed(int maxHandCardsUsed)
           
 void setFMinHandCardsUsed(int minHandCardsUsed)
           
 void setFNumCommunityCards(int numCommunityCards)
           
 void setFNumPlayerCards(int numPlayerCards)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSet

public RuleSet()

Construct a new Rule Set with default parameters


RuleSet

public RuleSet(int npCards,
               int minCards,
               int maxCards,
               int nComm,
               java.util.SortedSet ranks)
Method Detail

getFGameName

public java.lang.String getFGameName()
Returns:
Returns the fGameName.

setFGameName

public void setFGameName(java.lang.String gameName)
Parameters:
gameName - The fGameName to set.

getFMaxHandCardsUsed

public int getFMaxHandCardsUsed()
Returns:
Returns the fMaxHandCardsUsed.

setFMaxHandCardsUsed

public void setFMaxHandCardsUsed(int maxHandCardsUsed)
Parameters:
maxHandCardsUsed - The fMaxHandCardsUsed to set.

getFMinHandCardsUsed

public int getFMinHandCardsUsed()
Returns:
Returns the fMinHandCardsUsed.

setFMinHandCardsUsed

public void setFMinHandCardsUsed(int minHandCardsUsed)
Parameters:
minHandCardsUsed - The fMinHandCardsUsed to set.

getFNumCommunityCards

public int getFNumCommunityCards()
Returns:
Returns the fNumCommunityCards.

setFNumCommunityCards

public void setFNumCommunityCards(int numCommunityCards)
Parameters:
numCommunityCards - The fNumCommunityCards to set.

getFNumPlayerCards

public int getFNumPlayerCards()
Returns:
Returns the fNumPlayerCards.

setFNumPlayerCards

public void setFNumPlayerCards(int numPlayerCards)
Parameters:
numPlayerCards - The fNumPlayerCards to set.

getFHandRanks

public java.util.SortedSet getFHandRanks()
Returns:
Returns the fHandRanks.

setFHandRanks

public void setFHandRanks(java.util.SortedSet handRanks)
Parameters:
handRanks - The fHandRanks to set.


Copyright © 2005-2007 Pagemewhen.com. All Rights Reserved.