Package org.swtpra1.amazongame
Class Square
- java.lang.Object
-
- org.swtpra1.amazongame.Square
-
- All Implemented Interfaces:
java.io.Serializable
public class Square extends java.lang.Object implements java.io.Serializable
This class represents one square on the board and will help with serialization and constructing turns later on.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Square(int row, int column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getColumn()
int
getRow()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getRow
public int getRow()
-
getColumn
public int getColumn()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-