|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jogre.common.playerstate.PlayerState
org.jogre.common.playerstate.PlayerStateSeated
State object for a seated player state.
| Field Summary |
| Fields inherited from class org.jogre.common.playerstate.PlayerState |
GAME_STARTED, READY_TO_START, SEATED, VIEWING |
| Constructor Summary | |
PlayerStateSeated()
|
|
| Method Summary | |
boolean |
canOfferDrawResign()
Returns true if a user can offer a draw or resign. |
boolean |
canSit(Table table)
Returns true if a user can sit. |
boolean |
canStand(Table table)
Once seated a player can stand back up again. |
boolean |
canStart(Table table,
Game game)
A player can start if the minimum number of players are seated or are ready to start. |
PlayerState |
sit()
Abstract method which defines what a player can do when they sit. |
PlayerState |
stand()
If a player stands his state goes back to viewing. |
PlayerState |
start()
Player state goes to ready to start. |
String |
stringValue()
Integer label of this state (see constants of this class). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PlayerStateSeated()
| Method Detail |
public PlayerState stand()
stand in class PlayerStatePlayerState.stand()public PlayerState start()
start in class PlayerStatePlayerState.start()public boolean canStand(Table table)
canStand in class PlayerStatetable - Link to the table
org.jogre.common.playerstate.PlayerState#canStand(org.jogre.common.PlayerList)
public boolean canStart(Table table,
Game game)
canStart in class PlayerStatetable - Link to the tablegame - Link to the game.
org.jogre.common.playerstate.PlayerState#canStart(org.jogre.common.PlayerList)public PlayerState sit()
PlayerState
sit in class PlayerStatepublic boolean canSit(Table table)
PlayerState
canSit in class PlayerStatetable - Link to the table
public boolean canOfferDrawResign()
PlayerState
canOfferDrawResign in class PlayerStatepublic String stringValue()
PlayerState
stringValue in class PlayerStateorg.jogre.common.playerstate.PlayerState#intValue()public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||