|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttron.Cell
public class Cell
A simple class that represents the position of a cell on the board with a row and column.
| Field Summary | |
|---|---|
int |
col
|
int |
row
|
| Constructor Summary | |
|---|---|
Cell()
Creates a cell with no position. |
|
Cell(Cell otherCell)
Copy constructor |
|
Cell(int row,
int col)
Creates a cell position given a row and column |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines if the parameter is a cell that has the same values as this cell. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int row
public int col
| Constructor Detail |
|---|
public Cell()
public Cell(int row,
int col)
row - the rowcol - the columnpublic Cell(Cell otherCell)
otherCell - the cell to copy| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||