|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.puzzle.drop.data.DropBoard.SetSegmentOperation
protected static class DropBoard.SetSegmentOperation
An operation that sets the pieces in a board segment to a specified array of pieces.
| Field Summary | |
|---|---|
protected int |
_dir
The orientation in which the pieces are to be placed. |
protected int |
_idx
The current piece index. |
protected int[] |
_pieces
The pieces to set in the board. |
| Constructor Summary | |
|---|---|
protected |
DropBoard.SetSegmentOperation()
|
| Method Summary | |
|---|---|
boolean |
execute(DropBoard board,
int col,
int row)
Called for each piece in the board segment the operation is being applied to. |
void |
init(int dir,
int[] pieces)
Sets the array of pieces 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 _dir
protected int _idx
protected int[] _pieces
| Constructor Detail |
|---|
protected DropBoard.SetSegmentOperation()
| Method Detail |
|---|
public void init(int dir,
int[] pieces)
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 | ||||||||