Class Move
java.lang.Object
castle.comp3021.assignment.protocol.Move
- All Implemented Interfaces:
java.lang.Cloneable
public class Move
extends java.lang.Object
implements java.lang.Cloneable
-
Field Summary
Fields Modifier and Type Field Description private Place
destination
Move destinationprivate Place
source
Source place of the move. -
Constructor Summary
-
Method Summary
-
Field Details
-
source
Source place of the move. -
destination
Move destination
-
-
Constructor Details
-
Method Details
-
getSource
-
getDestination
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
clone
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-