com.asdf.plugins.pokergames
Interface Stage

All Known Implementing Classes:
TexasHoldemStage

public interface Stage

Interface for any one wanting to implement a different Poker game using ready-made PokerGame class

Author:
rimpila

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
 Stage indexToStage(int index)
          Returns the Stage that this integer represents this is the inverse of index()
 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
 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
 Stage start()
          Stage that should be run first
 

Method Detail

index

int index()
Function for transforming the stage into an integer for messages

Returns:
integer unique to the current stage

param

int param()
Parameter concerning this stage, for stages with cards being dealt, the number of cards to deal

Returns:
integer

correspondingCase

int correspondingCase()
Integer for which case to run in the Switch in PokerGame method updateStage(int Stage)

Returns:
int

next

Stage next()
Returns the stage following the current stage

Returns:
Stage

lessThanTwoPlayers

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

Returns:
Stage

start

Stage start()
Stage that should be run first

Returns:
the Stage

indexToStage

Stage indexToStage(int index)
Returns the Stage that this integer represents this is the inverse of index()

Parameters:
index -
Returns:
the Stage