|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITerrain
Represents a single type of terrain or condition in a hex. The type of a terrain is immutable, once created, but the level and exits are changable. Each type of terrain should only be represented once in a hex.
| Field Summary | |
|---|---|
static int |
LEVEL_NONE
|
static int |
WILDCARD
|
| Method Summary | |
|---|---|
boolean |
exitsTo(ITerrain other)
|
void |
flipExits(boolean horiz,
boolean vert)
Flips the exits around the vertical axis (North-for-South) and/or the horizontal axis (East-for-West). |
int |
getBogDownModifier(EntityMovementMode moveMode,
boolean largeVee)
|
int |
getExits()
|
int |
getLevel()
|
int |
getTerrainFactor()
|
int |
getType()
|
int |
getUnstuckModifier(int elev)
|
boolean |
hasExitsSpecified()
|
int |
ignitionModifier()
the fire ignition modifier for this terrain |
int |
movementCost(EntityMovementMode moveMode)
|
int |
pilotingModifier(EntityMovementMode moveMode)
|
void |
setExit(int direction,
boolean connection)
Sets the exit in specified direction |
void |
setExits(int exits)
Sets the exits |
void |
setTerrainFactor(int tf)
set terrain factor |
| Field Detail |
|---|
static final int LEVEL_NONE
static final int WILDCARD
| Method Detail |
|---|
int getType()
int getLevel()
int getTerrainFactor()
void setTerrainFactor(int tf)
int getExits()
boolean hasExitsSpecified()
true if exits are specifiedvoid setExits(int exits)
exits -
void setExit(int direction,
boolean connection)
direction - - the direction to add/remove the exitconnection - - true to add, false to remove
void flipExits(boolean horiz,
boolean vert)
horiz - - a boolean value that, if true,
indicates that the exits are being flipped North-for-South.vert - - a boolean value that, if true,
indicates that the exits are being flipped East-for-West.boolean exitsTo(ITerrain other)
int pilotingModifier(EntityMovementMode moveMode)
int movementCost(EntityMovementMode moveMode)
int ignitionModifier()
int getBogDownModifier(EntityMovementMode moveMode,
boolean largeVee)
int getUnstuckModifier(int elev)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||