Package jadex.web.examples.puzzle
Class Move
- java.lang.Object
-
- jadex.web.examples.puzzle.Move
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Move extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
A move consisting of a start and an end point.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getStart
public Position getStart()
Get the start.
-
getEnd
public Position getEnd()
Get the target.
-
setStart
public void setStart(Position start)
Set the start position.
-
setEnd
public void setEnd(Position end)
Set the end position.
-
isJumpMove
public boolean isJumpMove()
Test if it is a jump move.
-
equals
public boolean equals(java.lang.Object o)
Test if two positions are equal.- Overrides:
equals
in classjava.lang.Object
- Returns:
- True, if equal.
-
hashCode
public int hashCode()
Calculate the hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
clone
public java.lang.Object clone()
Clone the object.- Overrides:
clone
in classjava.lang.Object
- Returns:
- The clone.
-
-