public class Move
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected Position |
end
The end position.
|
protected Position |
start
The start position.
|
Constructor and Description |
---|
Move()
Create a move.
|
Move(Position start,
Position end)
Create a move.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone the object.
|
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.
|
void |
setEnd(Position end)
Set the end position.
|
void |
setStart(Position start)
Set the start position.
|
java.lang.String |
toString()
Get the string representation.
|
protected Position start
protected Position end
public Position getStart()
public Position getEnd()
public void setStart(Position start)
public void setEnd(Position end)
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
public java.lang.Object clone()
clone
in class java.lang.Object