Class Turn
- java.lang.Object
-
- org.swtpra1.alphabetaplayer.hippolyta.model.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 boardstatic class
Turn.Move
one movement of an amazone
-
Field Summary
Fields Modifier and Type Field Description Turn.Move
move
Turn.Coordinate
shot
-
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()
-
-
-
Field Detail
-
move
@SerializedName("move") public final Turn.Move move
-
shot
@SerializedName("shot") public final Turn.Coordinate shot
-
-
Method Detail
-
copy
public Turn copy()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-