Class ArchSimGridBlock
java.lang.Object
|
+--edu.kzoo.grid.GridObject
|
+--edu.kzoo.grid.TextCell
|
+--ArchSimGridBlock
- public class ArchSimGridBlock
- extends edu.kzoo.grid.TextCell
Archaeological Dig:
An ArchSimGridBlock
object represents a grid block
in a site map for an archaeological dig. The contents of the grid
block may be hidden, in which case the grid display should not
show them, or may be visible.
- Version:
- May 18, 2004
- Author:
- Alyce Brady
Constructor Summary |
ArchSimGridBlock(edu.kzoo.grid.Grid grid,
edu.kzoo.grid.Location loc,
java.lang.String textLabel,
java.awt.Color color)
Initializes a new ArchSimGridBlock object. |
Method Summary |
boolean |
isHidden()
Return true if the contents of this grid block is still hidden;
otherwise, returns false. |
boolean |
isVisible()
Returns true if the contents of this grid block is now visible
(meaning that archaeologists have explored this site location);
otherwise, returns false. |
Methods inherited from class edu.kzoo.grid.TextCell |
color, text |
Methods inherited from class edu.kzoo.grid.GridObject |
addToGrid, changeLocation, grid, isInAGrid, location, removeFromGrid, theGridObjectInvariantHolds, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArchSimGridBlock
public ArchSimGridBlock(edu.kzoo.grid.Grid grid,
edu.kzoo.grid.Location loc,
java.lang.String textLabel,
java.awt.Color color)
- Initializes a new ArchSimGridBlock object.
- Parameters:
grid
- the grid in which to place this grid blockloc
- the location of the new object in grid
textLabel
- a one- or two-character label for this objectcolor
- the color to use when drawing the object
isVisible
public boolean isVisible()
- Returns true if the contents of this grid block is now visible
(meaning that archaeologists have explored this site location);
otherwise, returns false.
isHidden
public boolean isHidden()
- Return true if the contents of this grid block is still hidden;
otherwise, returns false.