Class Turn

  • All Implemented Interfaces:
    java.io.Serializable

    public class Turn
    extends java.lang.Object
    implements java.io.Serializable
    a single turn a player makes
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Turn.Coordinate
      coordinate on the game board
      static class  Turn.Move
      one movement of an amazone
    • Constructor Summary

      Constructors 
      Constructor Description
      Turn​(int moveStartRow, int moveStartColumn, int moveEndRow, int moveEndColumn, int shotRow, int shotColumn)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Turn copy()  
      boolean equals​(java.lang.Object o)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • move

        @SerializedName("move")
        public final Turn.Move move
    • Constructor Detail

      • Turn

        public Turn​(int moveStartRow,
                    int moveStartColumn,
                    int moveEndRow,
                    int moveEndColumn,
                    int shotRow,
                    int shotColumn)
    • Method Detail

      • copy

        public Turn copy()
      • toString

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

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