|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Cell
public class Cell
Constructor Summary | |
---|---|
Cell()
Default constructor. |
Method Summary | |
---|---|
boolean |
getIsHit()
returns whether this cell has been hit. |
Ship |
getShipOnCell()
returns the instance of the ship on this cell. |
void |
setIsHit(boolean value)
Marks this cell as hit if flag is true. |
void |
setShipOnCell(Ship aShip)
sets an instance of ship on this cell. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell()
Method Detail |
---|
public void setShipOnCell(Ship aShip)
aShip
- the instance of ship.public void setIsHit(boolean value)
value
- true signifies that cell has been hit.public boolean getIsHit()
public Ship getShipOnCell()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |