|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jogre.common.playerstate.PlayerState org.jogre.common.playerstate.PlayerStateReady
State object for a player ready state.
Field Summary |
Fields inherited from class org.jogre.common.playerstate.PlayerState |
GAME_STARTED, READY_TO_START, SEATED, VIEWING |
Constructor Summary | |
PlayerStateReady()
|
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 PlayerStateReady()
Method Detail |
public PlayerState sit()
PlayerState
sit
in class PlayerState
public PlayerState stand()
PlayerState
stand
in class PlayerState
public PlayerState start()
PlayerState
start
in class PlayerState
public boolean canSit(Table table)
PlayerState
canSit
in class PlayerState
table
- Link to the table
public boolean canStand(Table table)
PlayerState
canStand
in class PlayerState
table
- Link to the table
public boolean canStart(Table table, Game game)
PlayerState
canStart
in class PlayerState
table
- Link to the tablegame
- Link to the game.
public boolean canOfferDrawResign()
PlayerState
canOfferDrawResign
in class PlayerState
public String stringValue()
PlayerState
stringValue
in class PlayerState
org.jogre.common.playerstate.PlayerState#intValue()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |