Class MoveRecord

java.lang.Object
castle.comp3021.assignment.protocol.MoveRecord
All Implemented Interfaces:
java.lang.Cloneable

public class MoveRecord
extends java.lang.Object
implements java.lang.Cloneable
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private Move move  
    private Player player  
  • Constructor Summary

    Constructors 
    Constructor Description
    MoveRecord​(@NotNull Player player, @NotNull Move move)  
  • Method Summary

    Modifier and Type Method Description
    MoveRecord clone()  
    boolean equals​(java.lang.Object o)  
    Move getMove()  
    Player getPlayer()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getPlayer

      public Player getPlayer()
    • getMove

      public Move getMove()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • clone

      public MoveRecord clone() throws java.lang.CloneNotSupportedException
      Overrides:
      clone in class java.lang.Object
      Throws:
      java.lang.CloneNotSupportedException