|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.puzzle.drop.data.DropBoard.SetPieceOperation
protected static class DropBoard.SetPieceOperation
An operation that sets all pieces to a specified piece.
| Field Summary | |
|---|---|
protected boolean |
_error
Set to true if an error occurred setting a piece. |
protected int |
_piece
The piece to set in the board. |
| Constructor Summary | |
|---|---|
protected |
DropBoard.SetPieceOperation()
|
| Method Summary | |
|---|---|
boolean |
execute(DropBoard board,
int col,
int row)
Called for each piece in the board segment the operation is being applied to. |
boolean |
getError()
Returns true if we attempted to set a piece outside the bounds of the board during the course of our operation. |
void |
init(int piece)
Sets the piece to be placed in the board segment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _piece
protected boolean _error
| Constructor Detail |
|---|
protected DropBoard.SetPieceOperation()
| Method Detail |
|---|
public void init(int piece)
public boolean getError()
public boolean execute(DropBoard board,
int col,
int row)
DropBoard.PieceOperation
execute in interface DropBoard.PieceOperation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||