com.asdf.plugins.pokergames.texasholdem
Class TexasHoldemStage

java.lang.Object
  extended by com.asdf.plugins.pokergames.texasholdem.TexasHoldemStage
All Implemented Interfaces:
com.asdf.plugins.pokergames.Stage

public class TexasHoldemStage
extends java.lang.Object
implements com.asdf.plugins.pokergames.Stage


Nested Class Summary
static class TexasHoldemStage.TexasHoldemEnumStage
           
 
Constructor Summary
TexasHoldemStage()
           
TexasHoldemStage(TexasHoldemStage.TexasHoldemEnumStage stage)
           
 
Method Summary
 int correspondingCase()
          Integer for which case to run in the Switch in PokerGame method updateStage(int Stage)
 int index()
          Function for transforming the stage into an integer for messages
 com.asdf.plugins.pokergames.Stage indexToStage(int index)
          Returns the Stage that this integer represents this is the inverse of index()
static boolean isFlop(int stage)
           
static boolean isPreFlop(int stage)
           
static boolean isRiver(int stage)
           
static boolean isTurn(int stage)
           
 com.asdf.plugins.pokergames.Stage lessThanTwoPlayers()
          Stage that should be run when there are one of less players still active Probably should correspond to case PokerGame.LESS_THAN_TWO_PLAYERS
 com.asdf.plugins.pokergames.Stage next()
          Returns the stage following the current stage
 int param()
          Parameter concerning this stage, for stages with cards being dealt, the number of cards to deal
 com.asdf.plugins.pokergames.Stage start()
          Stage that should be run first
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TexasHoldemStage

public TexasHoldemStage(TexasHoldemStage.TexasHoldemEnumStage stage)

TexasHoldemStage

public TexasHoldemStage()
Method Detail

lessThanTwoPlayers

public com.asdf.plugins.pokergames.Stage lessThanTwoPlayers()
Description copied from interface: com.asdf.plugins.pokergames.Stage
Stage that should be run when there are one of less players still active Probably should correspond to case PokerGame.LESS_THAN_TWO_PLAYERS

Specified by:
lessThanTwoPlayers in interface com.asdf.plugins.pokergames.Stage
Returns:
Stage

correspondingCase

public int correspondingCase()
Description copied from interface: com.asdf.plugins.pokergames.Stage
Integer for which case to run in the Switch in PokerGame method updateStage(int Stage)

Specified by:
correspondingCase in interface com.asdf.plugins.pokergames.Stage
Returns:
int

index

public int index()
Description copied from interface: com.asdf.plugins.pokergames.Stage
Function for transforming the stage into an integer for messages

Specified by:
index in interface com.asdf.plugins.pokergames.Stage
Returns:
integer unique to the current stage

next

public com.asdf.plugins.pokergames.Stage next()
Description copied from interface: com.asdf.plugins.pokergames.Stage
Returns the stage following the current stage

Specified by:
next in interface com.asdf.plugins.pokergames.Stage
Returns:
Stage

param

public int param()
Description copied from interface: com.asdf.plugins.pokergames.Stage
Parameter concerning this stage, for stages with cards being dealt, the number of cards to deal

Specified by:
param in interface com.asdf.plugins.pokergames.Stage
Returns:
integer

start

public com.asdf.plugins.pokergames.Stage start()
Description copied from interface: com.asdf.plugins.pokergames.Stage
Stage that should be run first

Specified by:
start in interface com.asdf.plugins.pokergames.Stage
Returns:
the Stage

isFlop

public static boolean isFlop(int stage)

isPreFlop

public static boolean isPreFlop(int stage)

isRiver

public static boolean isRiver(int stage)

isTurn

public static boolean isTurn(int stage)

indexToStage

public com.asdf.plugins.pokergames.Stage indexToStage(int index)
Description copied from interface: com.asdf.plugins.pokergames.Stage
Returns the Stage that this integer represents this is the inverse of index()

Specified by:
indexToStage in interface com.asdf.plugins.pokergames.Stage
Returns:
the Stage