public class Move
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected Position |
end
The end position.
|
protected Position |
start
The start position.
|
Constructor and Description |
---|
Move(Position start,
Position end)
Create a position.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test if two positions are equal.
|
Position |
getEnd()
Get the target.
|
Position |
getStart()
Get the start.
|
int |
hashCode()
Calculate the hash code.
|
boolean |
isJumpMove()
Test if it is a jump move.
|
java.lang.String |
toString()
Get the string representation.
|
protected Position start
protected Position end
public Position getStart()
public Position getEnd()
public boolean isJumpMove()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object