public interface TurnGameObject
GameObject.| Modifier and Type | Field and Description |
|---|---|
static com.threerings.util.Name |
TURN_HOLDER_REPLACED
A special value used to communicate to the client that the current
turn holder was replaced (perhaps due to disconnection or departure
and being replaced by an AI).
|
| Modifier and Type | Method and Description |
|---|---|
com.threerings.util.Name[] |
getPlayers()
Returns the array of player names involved in the game.
|
com.threerings.util.Name |
getTurnHolder()
Returns the username of the player who is currently taking their
turn in this turn-based game or
null if no user
currently holds the turn. |
String |
getTurnHolderFieldName()
Returns the distributed object field name of the
turnHolder field in the object that implements this
interface. |
boolean |
isInPlay()
Returns true if the game is in play, false if not.
|
void |
setTurnHolder(com.threerings.util.Name turnHolder)
Requests that the
turnHolder field be set to the specified
value. |
static final com.threerings.util.Name TURN_HOLDER_REPLACED
String getTurnHolderFieldName()
turnHolder field in the object that implements this
interface.com.threerings.util.Name getTurnHolder()
null if no user
currently holds the turn.void setTurnHolder(com.threerings.util.Name turnHolder)
turnHolder field be set to the specified
value.com.threerings.util.Name[] getPlayers()
boolean isInPlay()
Copyright © 2015. All rights reserved.