|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CellDweller | +--Marker
A Marker is a type of CellDweller. A marker is a flag or question mark placed by the player on a particular Cell. There can only be one Marker on each Cell at a time.
Field Summary | |
(package private) static Color |
FLAG
|
(package private) static Color |
QUESTION_MARK
|
Fields inherited from class CellDweller |
parentCell |
Constructor Summary | |
Marker(Cell cell)
Constructor for Markers. |
Method Summary | |
void |
cycle()
Cycles the marker between flag, question mark, and nothing. |
Color |
getType()
Get the Color representing the 'type' of this marker -- flag or question mark. |
void |
setType(Color type)
Set the 'type' of this marker -- flag or question mark, and paint its colour on the parent cell. |
void |
updateFlagCounters()
Update World's flag counters to keep score accurate. |
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 |
static final Color FLAG
static final Color QUESTION_MARK
Constructor Detail |
public Marker(Cell cell)
cell
- the Cell on which this marker is to be placed.Method Detail |
public void cycle()
public Color getType()
public void setType(Color type)
type
- the 'type' of the markerpublic void updateFlagCounters()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |