|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class that implements this interface represents a single loose group. A loose group consists of one or more groups of stones of the same color which tend to act as a single unit. An example is the stones of a shimari, or two adjacent stones on the third and fourth lines, and another stone on the third line three spaces away.
Method Summary | |
Object |
clone()
Override the Object.clone() method. |
Stone |
getAnyStone()
Return one stone from the group. |
Stone[] |
getClosestStones(Point pt)
Get the closest stones to the specified point. |
Color |
getColor()
Get the color of the stones in this loose group. |
short |
getDistanceToClosestStones(Point pt)
Get the distance to the closest stone in the group. |
short |
getMaxX()
Get the maximum horizontal value of any stone in the loose group. |
short |
getMaxY()
Get the maximum vertical value of any stone in the loose group. |
short |
getMinX()
Get the minimum horizontal value of any stone in the loose group. |
short |
getMinY()
Get the minimum vertical value of any stone in the loose group. |
SingleGroup[] |
getSingleGroups()
Return the single groups that comprise this loose group. |
Stone[] |
getStones()
Return all of the stones in this group. |
short |
getTotalSingleGroups()
Return the total number of single groups that comprise this loose group. |
boolean |
isInBoundingBox(Point pt)
Determine if the point is in the bounding box for the loose group. |
boolean |
isInSingleLooseGroup(SingleGroup sg)
Return whether the single group is in the single loose group. |
boolean |
isInSingleLooseGroup(Stone stone)
Return whether the stone is in the single loose group. |
Method Detail |
public boolean isInSingleLooseGroup(Stone stone)
stone
- The stone in question.
public boolean isInSingleLooseGroup(SingleGroup sg)
sg
- The single group in question.
public SingleGroup[] getSingleGroups()
public short getTotalSingleGroups()
public Stone getAnyStone()
public Stone[] getClosestStones(Point pt)
pt
- The point in question.
public short getDistanceToClosestStones(Point pt)
pt
- The point in question.
public Stone[] getStones()
public short getMinX()
public short getMaxX()
public short getMinY()
public short getMaxY()
public boolean isInBoundingBox(Point pt)
pt
- The point in question.
public Color getColor()
public Object clone()
clone
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |