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

Field Summary
(package private) static Color REVEAL_COLOR
           
 
Fields inherited from class CellDweller
parentCell
 
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 CellDweller
getCell, setCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVEAL_COLOR

static final Color REVEAL_COLOR
Constructor Detail

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.
Method Detail

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