public class Cell
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
x
The x (horizontal) coordinate
|
int |
y
The y (vertical) coordinate
|
| Constructor and Description |
|---|
Cell(int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
Cell |
copy() |
boolean |
equals(java.lang.Object obj)
Checks if two
Cell instances have the same coordinates. |
java.lang.String |
toString()
Print's the cell's coordinates.
|
public int x
public int y
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Cell instances have the same coordinates.equals in class java.lang.Objectpublic Cell copy()