|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.puzzle.drop.util.PieceDestroyer.SegmentLengthOperation
protected class PieceDestroyer.SegmentLengthOperation
A piece operation that calculates the length of the contiguous piece segment to which it is applied.
| Field Summary | |
|---|---|
protected int |
_len
The segment length in pieces. |
protected int |
_piece
The root segment piece. |
| Constructor Summary | |
|---|---|
protected |
PieceDestroyer.SegmentLengthOperation()
|
| Method Summary | |
|---|---|
boolean |
execute(DropBoard board,
int col,
int row)
Called for each piece in the board segment the operation is being applied to. |
int |
getLength()
Returns the length of the contiguous piece segment. |
void |
reset()
Resets the operation for application to a new piece 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 int _len
| Constructor Detail |
|---|
protected PieceDestroyer.SegmentLengthOperation()
| Method Detail |
|---|
public void reset()
public int getLength()
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 | ||||||||