|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexplorer.SpaceCell
public class SpaceCell
This class implements a cell to be inserted in a SpaceGrid grid
Field Summary | |
---|---|
static int |
ACCESSIBLE
An accessible cell |
static int |
FORBIDDEN
A forbidden cell (not accessible to all explorators) |
static int |
WALL
A wall |
Constructor Summary | |
---|---|
SpaceCell(int cellType)
Create a new cell |
Method Summary | |
---|---|
int |
cellType()
Check the cell type |
boolean |
isAccessible()
Check if the cell is accessible. |
boolean |
isForbidden()
Check if the cell is forbidden |
boolean |
isWall()
Check if the cell is a wall |
void |
setCellType(int cellType)
Sets the cell type (SpaceCell.ACCESSIBLE - SpaceCell.FORBIDDEN - SpaceCell.WALL) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ACCESSIBLE
public static final int FORBIDDEN
public static final int WALL
Constructor Detail |
---|
public SpaceCell(int cellType)
cellType
- cell type (ACCESSIBLE, FORBIDDEN, WALL)Method Detail |
---|
public boolean isAccessible()
public boolean isForbidden()
public boolean isWall()
public void setCellType(int cellType)
cellType
- The cell type to set (SpaceCell.ACCESSIBLE - SpaceCell.FORBIDDEN - SpaceCell.WALL)public int cellType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |