Class Mine
java.lang.Object
|
+--CellDweller
|
+--Mine
- public class Mine
- extends CellDweller
A Mine is a type of CellDweller that the player is trying to detect
and mark with a flag Marker.
- Author:
- Phil Reakes
Constructor Summary |
Mine(Cell cell)
Constructor for Mines. |
Method Summary |
boolean |
isFlagged()
Check whether the player has correctly marked this mine with a flag. |
void |
reveal()
Reveal this mine. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVEAL_COLOR
static final Color REVEAL_COLOR
Mine
public Mine(Cell cell)
- Constructor for Mines. Places the mine on a specified cell.
- Parameters:
cell
- the cell on which this mine is to be placed.
isFlagged
public boolean isFlagged()
- Check whether the player has correctly marked this mine with a flag.
- Returns:
- true if the mine is flagged
reveal
public void reveal()
- Reveal this mine.
Generated by BlueJ