|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IHex
IHex represents a single hex on the board.
| Method Summary | |
|---|---|
void |
addTerrain(ITerrain terrain)
Adds the specified terrain |
int |
ceiling()
|
void |
clearExits()
Clears the "exits" flag for all terrains in the hex where it is not manually specified. |
boolean |
containsTerrain(int type)
|
boolean |
containsTerrain(int type,
int level)
|
boolean |
containsTerrainExit(int terrType,
int direction)
Determine if this Hex contains the indicated terrain that
exits in the specified direction. |
int |
depth()
|
int |
displayableTerrainsPresent()
|
IHex |
duplicate()
|
int |
floor()
|
int |
getBogDownModifier(EntityMovementMode moveMode,
boolean largeVee)
|
Coords |
getCoords()
|
int |
getElevation()
|
int |
getFireTurn()
|
int |
getIgnitionModifier()
|
ITerrain |
getTerrain(int type)
|
java.lang.String |
getTheme()
The theme is intended as a tag for the tileset file to indicate a special graphic for the hex. |
int |
getUnstuckModifier(int elev)
|
boolean |
hasPavement()
|
void |
incrementFireTurn()
|
boolean |
isClear()
|
boolean |
isIgnitable()
|
int |
movementCost(EntityMovementMode moveType)
(Only if statically determinable) |
void |
removeAllTerrains()
Removes all Terreains from the hex. |
void |
removeTerrain(int type)
Removes the specified terrain |
void |
resetFireTurn()
|
void |
setElevation(int elevation)
set the elevation |
void |
setExits(IHex other,
int direction)
Sets the "exits" flag appropriately, assuming the specified hex lies in the specified direction on the board. |
void |
setExits(IHex other,
int direction,
boolean roadsAutoExit)
Sets the "exits" flag appropriately, assuming the specified hex lies in the specified direction on the board. |
void |
setTheme(java.lang.String theme)
Set the hex theme. |
int |
surface()
|
int |
terrainLevel(int type)
|
int |
terrainPilotingModifier(EntityMovementMode moveType)
|
int |
terrainsPresent()
|
| Method Detail |
|---|
int getElevation()
void setElevation(int elevation)
elevation - java.lang.String getTheme()
void setTheme(java.lang.String theme)
theme - theme namegetThemevoid clearExits()
void setExits(IHex other,
int direction)
Terrain.ROADs will exit onto
Terrain.PAVEMENT hexes automatically.
other - neighbour hexdirection - - the int direction of the exit. This
value should be between 0 and 5 (inclusive).setExits(IHex, int, boolean)
void setExits(IHex other,
int direction,
boolean roadsAutoExit)
roadsAutoExit is
true, any Terrain.ROAD will exit onto
Terrain.PAVEMENT hexes automatically.
other - neighbour hexdirection - - the int direction of the exit. This
value should be between 0 and 5 (inclusive).roadsAutoExit - setExits(IHex, int)
boolean containsTerrainExit(int terrType,
int direction)
Hex contains the indicated terrain that
exits in the specified direction.
terrType - - the int type of the terrain.direction - - the int direction of the exit. This
value should be between 0 and 5 (inclusive).
true if this Hex contains the
indicated terrain that exits in the specified direction.
false if bad input is supplied, if no such terrain
exists, or if it doesn't exit in that direction.setExits(IHex, int, boolean)int ceiling()
int surface()
int floor()
int depth()
boolean hasPavement()
boolean containsTerrain(int type)
type - terrain to check
true if the specified terrain is represented in
the hex at any level.containsTerrain(int, int)
boolean containsTerrain(int type,
int level)
type - terrain type to checklevel - level to check the presence of the given terrain at
true if the specified terrain is represented in
the hex at given level.containsTerrain(int)int terrainLevel(int type)
ITerrain getTerrain(int type)
type -
null if the
terrain is not present in the hexvoid addTerrain(ITerrain terrain)
terrain - terrain to addvoid removeTerrain(int type)
type - void removeAllTerrains()
int displayableTerrainsPresent()
int terrainsPresent()
IHex duplicate()
int terrainPilotingModifier(EntityMovementMode moveType)
int movementCost(EntityMovementMode moveType)
int getIgnitionModifier()
boolean isIgnitable()
true if this hex is ignitableint getFireTurn()
void incrementFireTurn()
void resetFireTurn()
int getBogDownModifier(EntityMovementMode moveMode,
boolean largeVee)
int getUnstuckModifier(int elev)
boolean isClear()
Coords getCoords()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||