|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.world.tiles.Tile
Defines a series of constants that represent all tiles a map can contain. Each constant provides a ot of useful information about its special abilities due to a number of mehods.
| Field Summary | |
|---|---|
static Tile |
DEEP_SEA
the deep water tile |
static Tile |
DESERT
the desert tile |
static Tile |
DUMMY_RIVER
a dummy river tile for use during river placement |
static Tile |
DUNGEON
the dungeon tile |
static Tile |
FLOOR
the floor tile |
static Tile |
FOREST
the forest tile |
static Tile |
GRASS
the grass tile |
static Tile |
HIGH_MOUNTAIN
the high mountain tile |
static Tile |
HILLS
the hill tile |
static Tile |
LOW_MOUNTAIN
the low mountain tile |
static Tile |
MOUNTAIN
the mountain tile |
static Tile |
OUTDOOR_EXIT
the tunnel tile |
static Tile |
PLAINS
the plains tile |
static Tile |
RESISTANT_WALL
the resistant wall tile (can't be penetrated by anything and thus serves as a boundary) |
static Tile |
RIVER
the river tile |
static Tile |
RIVER_SOURCE
the river source tile |
static Tile |
SEA
the water tile |
static Tile |
SETTLEMENT
the town tile |
static Tile |
STAIR_DOWN
the tunnel tile |
static Tile |
STAIR_UP
the tunnel tile |
static Tile |
SWAMP
the swamp tile |
static Tile |
TREE
the tree tile |
static Tile |
TUNNEL
the tunnel tile |
static Tile |
UNKNOWN
an undefined tile for uninitialized map pieces |
static Tile |
VOLCANOE
the volvanoe tile |
static Tile |
VORTEX
the tunnel tile |
static Tile |
WALL
the wall tile |
static Tile |
WATER
the water tile |
| Constructor Summary | |
|---|---|
Tile(java.lang.String aName,
boolean openness,
int vBlock)
Defines a new tile. |
|
| Method Summary | |
|---|---|
void |
executeActionAfterEnteringOn(Being being)
Executes an action on the being after the being successfully entered a tile. |
int |
getID()
Returns the ID of the tile. |
java.lang.String |
getName()
Returns the unqiue logical name of the tile. |
static int |
getNumberOfTiles()
Returns the total number of tiles. |
static java.util.Iterator |
getTileIterator()
Returns an iterator iterating all the tiles in the game. |
int |
getVisibilityBlockadeLevel()
Returns the blocking level of this tile as far as visibility is concerned. |
boolean |
isEnteredBy(Being being)
Determines whether a being manages to enter this particular tile. |
boolean |
isOpen()
Determines whether this tile is open for passage by solid beings or not. |
boolean |
isOpenFor(Being being)
Determines whether this tile is open for passage by a specific being or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Tile UNKNOWN
public static final Tile HIGH_MOUNTAIN
public static final Tile VOLCANOE
public static final Tile MOUNTAIN
public static final Tile LOW_MOUNTAIN
public static final Tile HILLS
public static final Tile FOREST
public static final Tile DESERT
public static final Tile PLAINS
public static final Tile DEEP_SEA
public static final Tile SEA
public static final Tile DUMMY_RIVER
public static final Tile RIVER
public static final Tile RIVER_SOURCE
public static final Tile SWAMP
public static final Tile SETTLEMENT
public static final Tile DUNGEON
public static final Tile WALL
public static final Tile TUNNEL
public static final Tile VORTEX
public static final Tile STAIR_UP
public static final Tile STAIR_DOWN
public static final Tile RESISTANT_WALL
public static final Tile GRASS
public static final Tile OUTDOOR_EXIT
public static final Tile WATER
public static final Tile TREE
public static final Tile FLOOR
| Constructor Detail |
|---|
public Tile(java.lang.String aName,
boolean openness,
int vBlock)
aName - the unique name for the tileopenness - a boolean value determining whether this tile
is open or notvBlock - the blocking level for visibility| Method Detail |
|---|
public int getID()
public java.lang.String getName()
public boolean isOpen()
public boolean isOpenFor(Being being)
being - the being to check
public int getVisibilityBlockadeLevel()
public static final int getNumberOfTiles()
public static java.util.Iterator getTileIterator()
public boolean isEnteredBy(Being being)
being - the being trying to enter this tile
public void executeActionAfterEnteringOn(Being being)
being - the being that entered the tile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||