|
|||||||||||
| 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.PlayerStateGameStarted
State object for a game started player state.
| Field Summary |
| Fields inherited from class org.jogre.common.playerstate.PlayerState |
GAME_STARTED, READY_TO_START, SEATED, VIEWING |
| Constructor Summary | |
PlayerStateGameStarted()
|
|
| 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)
Returns true if a user can stand. |
boolean |
canStart(Table table,
Game game)
Returns true if a user can hit the start. |
PlayerState |
sit()
Abstract method which defines what a player can do when they sit. |
PlayerState |
stand()
Abstract method which defines what a player can do when they stand up. |
PlayerState |
start()
Abstract method which defines what a player can do when they 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 PlayerStateGameStarted()
| Method Detail |
public PlayerState sit()
PlayerState
sit in class PlayerStatepublic PlayerState stand()
PlayerState
stand in class PlayerStatepublic PlayerState start()
PlayerState
start in class PlayerStatepublic boolean canSit(Table table)
PlayerState
canSit in class PlayerStatetable - Link to the table
public boolean canStand(Table table)
PlayerState
canStand in class PlayerStatetable - Link to the table
public boolean canStart(Table table,
Game game)
PlayerState
canStart in class PlayerStatetable - Link to the tablegame - Link to the game.
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 | ||||||||||