public class PuzzleObject extends GameObject implements PuzzleCodes
GameObject to add individual player status. Puzzle games typically
contain numerous players that may be knocked out of the game while the overall game continues
on, thereby necessitating this second level of game status.com.threerings.crowd.data.PlaceObject.ManagerCaller| Modifier and Type | Field and Description |
|---|---|
int |
difficulty
The puzzle difficulty level.
|
static String |
DIFFICULTY
The field name of the
difficulty field. |
static String |
PUZZLE_GAME_SERVICE
The field name of the
puzzleGameService field. |
PuzzleGameMarshaller |
puzzleGameService
Provides general puzzle game invocation services.
|
long |
seed
The seed used to germinate the boards.
|
static String |
SEED
The field name of the
seed field. |
BoardSummary[] |
summaries
Summaries of the boards of all players in this puzzle (may be null if the puzzle doesn't
support individual player boards).
|
static String |
SUMMARIES
The field name of the
summaries field. |
CANCELLED, GAME_OVER, IN_PLAY, IS_PRIVATE, IS_RATED, isPrivate, isRated, PLAYER_IN_PLAY, PLAYER_LEFT_GAME, PLAYER_STATUS, players, PLAYERS, playerStatus, PRE_GAME, SESSION_ID, sessionId, state, STATE, winners, WINNERSmanager, OCCUPANT_INFO, occupantInfo, occupants, OCCUPANTS, SPEAK_SERVICE, speakServiceDEBUG_PUZZLE, DEFAULT_DIFFICULTY, PUZZLE_MESSAGE_BUNDLE| Constructor and Description |
|---|
PuzzleObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
setDifficulty(int value)
Requests that the
difficulty field be set to the
specified value. |
void |
setPuzzleGameService(PuzzleGameMarshaller value)
Requests that the
puzzleGameService field be set to the
specified value. |
void |
setSeed(long value)
Requests that the
seed field be set to the
specified value. |
void |
setSummaries(BoardSummary[] value)
Requests that the
summaries field be set to the
specified value. |
void |
setSummariesAt(BoardSummary value,
int index)
Requests that the
indexth element of
summaries field be set to the specified value. |
getActivePlayerCount, getPlayerCount, getPlayerIndex, getWinnerCount, getWinnerIndex, isActivePlayer, isDraw, isInPlay, isOccupiedPlayer, isWinner, setIsPrivate, setIsRated, setPlayers, setPlayersAt, setPlayerStatus, setPlayerStatusAt, setSessionId, setState, setWinners, setWinnersAtaddToOccupantInfo, addToOccupants, applyToListeners, getChatIdentifier, getOccupantInfo, initManagerCaller, removeFromOccupantInfo, removeFromOccupants, setOccupantInfo, setSpeakService, shouldBroadcast, updateOccupantInfoacquireLock, addListener, addListener, addSubscriber, addToSet, cancelTransaction, changeAttribute, checkPermissions, checkPermissions, commitTransaction, destroy, getAccessController, getAttribute, getLocal, getLocals, getManager, getOid, getSet, inTransaction, isActive, notifyListeners, notifyProxies, postEvent, postMessage, postMessage, releaseLock, removeFromSet, removeListener, removeSubscriber, setAccessController, setAttribute, setDestroyOnLastSubscriberRemoved, setLocal, setManager, setOid, startTransaction, toString, updateSet, which@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String PUZZLE_GAME_SERVICE
puzzleGameService field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String DIFFICULTY
difficulty field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String SUMMARIES
summaries field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String SEED
seed field.public PuzzleGameMarshaller puzzleGameService
public int difficulty
public BoardSummary[] summaries
public long seed
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setPuzzleGameService(PuzzleGameMarshaller value)
puzzleGameService field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setDifficulty(int value)
difficulty field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setSummaries(BoardSummary[] value)
summaries field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setSummariesAt(BoardSummary value, int index)
indexth element of
summaries field be set to the specified value.
The local value will be updated immediately and an event will be
propagated through the system to notify all listeners that the
attribute did change. Proxied copies of this object (on clients)
will apply the value change when they received the attribute
changed notification.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setSeed(long value)
seed field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.Copyright © 2015. All rights reserved.