public final class Move
extends java.lang.Object
null (for pass move).
The color is black or white.
This class is immutable, references are unique.| Modifier and Type | Method and Description |
|---|---|
static Move |
get(GoColor color,
GoPoint point)
Factory method for constructing a move.
|
static Move |
get(GoColor color,
int x,
int y)
Factory method for constructing a move.
|
GoColor |
getColor()
Get color of move.
|
static Move |
getPass(GoColor c)
Factory method for constructing a pass move.
|
GoPoint |
getPoint()
Get stone location of move.
|
java.lang.String |
toString()
Get string representation of move.
|
public static Move get(GoColor color, int x, int y)
color - The color of the movex - Column in [0..GoPoint.MAX_SIZE - 1]y - Row in [0..GoPoint.MAX_SIZE - 1]public static Move get(GoColor color, GoPoint point)
color - The color of the move (empty can still be used for
removing a stone on the board, but this will be deprecated in the
future)point - Location of the move (null for pass move)public static Move getPass(GoColor c)
c - The color of the move.public GoColor getColor()
public GoPoint getPoint()
public java.lang.String toString()
toString in class java.lang.Object