|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.io.SimpleStreamableObject
com.threerings.puzzle.data.BoardSummary
public abstract class BoardSummary
Provides summarized data representing a player's board in a puzzle game. Board summaries are
maintained by the puzzle server and are periodically sent to the clients to give them a view
into how well their opponent(s) are doing. The data required to marshal a board summary object
should be notably smaller in size than what would be required to marshal the entire associated
Board.
Note all non-transient members of this and derived classes will automatically be serialized when the summary is sent over the wire.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
protected Board |
_board
The board that we're summarizing. |
| Constructor Summary | |
|---|---|
BoardSummary()
Constructs an empty board summary for use when un-serializing. |
|
BoardSummary(Board board)
Constructs a board summary that retrieves full board information from the supplied board when summarizing. |
|
| Method Summary | |
|---|---|
void |
setBoard(Board board)
Sets the board associated with this board summary, causing an immediate update to this summary. |
abstract void |
summarize()
Called by the PuzzleManager to refresh the board
summary information by studying the associated board contents. |
| Methods inherited from class com.threerings.io.SimpleStreamableObject |
|---|
toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient Board _board
| Constructor Detail |
|---|
public BoardSummary()
public BoardSummary(Board board)
| Method Detail |
|---|
public void setBoard(Board board)
public abstract void summarize()
PuzzleManager to refresh the board
summary information by studying the associated board contents.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||