|
|||||||||
| 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
com.threerings.puzzle.drop.data.DropBoardSummary
public class DropBoardSummary
Provides a summary of a DropBoard.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
protected DropBoard |
_dboard
The drop board we're summarizing. |
byte[] |
columns
The row levels for each column. |
| Fields inherited from class com.threerings.puzzle.data.BoardSummary |
|---|
_board |
| Constructor Summary | |
|---|---|
DropBoardSummary()
Constructs an empty drop board summary for use when un-serializing. |
|
DropBoardSummary(Board board)
Constructs a drop board summary that retrieves board information from the supplied board when summarizing. |
|
| Method Summary | |
|---|---|
int |
getHighestColumn(int startx,
int endx)
Returns the column number of the column within the given column range that contains the most pieces. |
void |
setBoard(Board board)
Sets the board associated with this board summary, causing an immediate update to this summary. |
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 |
|---|
public byte[] columns
protected transient DropBoard _dboard
| Constructor Detail |
|---|
public DropBoardSummary()
public DropBoardSummary(Board board)
| Method Detail |
|---|
public int getHighestColumn(int startx,
int endx)
public void setBoard(Board board)
BoardSummary
setBoard in class BoardSummarypublic void summarize()
BoardSummaryPuzzleManager to refresh the board
summary information by studying the associated board contents.
summarize in class BoardSummary
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||