|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.puzzle.drop.data.SegmentInfo
public class SegmentInfo
Describes a segment of pieces in a DropBoard.
| Field Summary | |
|---|---|
int |
dir
The segment's direction; one of DirectionCodes.HORIZONTAL
or DirectionCodes.VERTICAL. |
int |
len
The segment's length in pieces. |
int |
x
The segment's lower-left board coordinates. |
int |
y
The segment's lower-left board coordinates. |
| Constructor Summary | |
|---|---|
SegmentInfo(int dir,
int x,
int y,
int len)
Constructs a segment info object. |
|
| Method Summary | |
|---|---|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int dir
DirectionCodes.HORIZONTAL
or DirectionCodes.VERTICAL.
public int x
public int y
public int len
| Constructor Detail |
|---|
public SegmentInfo(int dir,
int x,
int y,
int len)
| Method Detail |
|---|
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||