|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.PlanetaryConditions
public class PlanetaryConditions
This class will hold all the information on planetary conditions and a variety of helper functions for those conditions
| Field Summary | |
|---|---|
static int |
ATMO_HIGH
|
static int |
ATMO_SIZE
|
static int |
ATMO_STANDARD
|
static int |
ATMO_THIN
|
static int |
ATMO_TRACE
|
static int |
ATMO_VACUUM
|
static int |
ATMO_VHIGH
|
static java.lang.String[] |
atmoNames
|
static int |
DIR_SIZE
|
static int |
FOG_HEAVY
|
static int |
FOG_LIGHT
|
static int |
FOG_NONE
|
static int |
FOG_SIZE
|
static int |
L_DAY
|
static int |
L_DUSK
|
static int |
L_FULL_MOON
|
static int |
L_MOONLESS
|
static int |
L_PITCH_BLACK
|
static int |
L_SIZE
|
static int |
WE_DOWNPOUR
|
static int |
WE_HEAVY_HAIL
|
static int |
WE_HEAVY_RAIN
|
static int |
WE_HEAVY_SNOW
|
static int |
WE_ICE_STORM
|
static int |
WE_LIGHT_HAIL
|
static int |
WE_LIGHT_RAIN
|
static int |
WE_LIGHT_SNOW
|
static int |
WE_MOD_RAIN
|
static int |
WE_MOD_SNOW
|
static int |
WE_NONE
|
static int |
WE_SIZE
|
static int |
WE_SLEET
|
static int |
WI_LIGHT_GALE
|
static int |
WI_MOD_GALE
|
static int |
WI_NONE
|
static int |
WI_SIZE
|
static int |
WI_STORM
|
static int |
WI_STRONG_GALE
|
static int |
WI_TORNADO_F13
|
static int |
WI_TORNADO_F4
|
| Constructor Summary | |
|---|---|
PlanetaryConditions()
Constructor |
|
PlanetaryConditions(PlanetaryConditions other)
Creates new PlanetaryConditions that is a duplicate of another |
|
| Method Summary | |
|---|---|
java.lang.String |
cannotStartFire()
|
java.lang.Object |
clone()
clone! |
void |
determineWind()
|
int |
getAtmosphere()
|
java.lang.String |
getAtmosphereCurrentName()
|
static java.lang.String |
getAtmosphereDisplayableName(int type)
|
int |
getDropRate()
|
int |
getFog()
|
java.lang.String |
getFogCurrentName()
|
static java.lang.String |
getFogDisplayableName(int type)
|
float |
getGravity()
|
int |
getGravityPilotPenalty()
gravity penalties to PSRs According to email from TPTB, you apply a penalty for every 0.5 gravities above or below 1 (rounding up) |
int |
getIgniteModifiers()
modifiers for fire ignition |
int |
getLight()
|
java.lang.String |
getLightCurrentName()
|
static java.lang.String |
getLightDisplayableName(int type)
|
int |
getLightHeatBonus(int heat)
heat bonus to hit for being overheated in darkness |
int |
getLightHitPenalty(boolean isWeapon)
to-hit penalty for light |
int |
getLightPilotPenalty()
piloting penalty for running/flanking/etc for light |
int |
getMaxWindStrength()
|
int |
getMinWindStrength()
|
int |
getMovementMods(Entity en)
Planetary conditions on movement, except for gravity |
int |
getTemperature()
|
int |
getTemperatureDifference(int high,
int low)
Returns how much higher or lower than a given range, divided by ten, rounded up, the temperature is |
int |
getVisualRange(Entity en,
boolean targetSpotlight)
visual range based on conditions |
int |
getWeather()
|
java.lang.String |
getWeatherCurrentName()
|
static java.lang.String |
getWeatherDisplayableName(int type)
|
int |
getWeatherHitPenalty(Entity en)
to-hit penalty for weather |
int |
getWeatherPilotPenalty()
piloting penalty for weather |
java.lang.String |
getWindCurrentName()
|
int |
getWindDirection()
|
java.lang.String |
getWindDirName()
|
static java.lang.String |
getWindDisplayableName(int type)
|
int |
getWindPilotPenalty(Entity en)
piloting penalty for wind |
int |
getWindStrength()
|
boolean |
hasEMI()
|
boolean |
isRecklessConditions()
|
boolean |
isSandBlowing()
|
boolean |
isTerrainAffected()
|
boolean |
isVacuum()
|
boolean |
putOutFire()
Do a roll for these weather conditions putting out fire return boolean |
void |
setAtmosphere(int a)
|
void |
setBlowingSand(boolean b)
|
void |
setEMI(boolean b)
|
void |
setFog(int fog)
|
void |
setGravity(float f)
|
void |
setLight(int type)
|
void |
setMaxWindStrength(int strength)
|
void |
setMinWindStrength(int strength)
|
void |
setShiftingWindDirection(boolean b)
|
void |
setShiftingWindStrength(boolean b)
|
void |
setTemperature(int tem)
|
void |
setTerrainAffected(boolean b)
|
void |
setWeather(int type)
|
void |
setWindDirection(int type)
|
void |
setWindStrength(int type)
|
boolean |
shiftingWindDirection()
|
boolean |
shiftingWindStrength()
|
java.lang.String |
whyDoomed(Entity en)
is the given entity type doomed in these conditions? |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int L_DAY
public static final int L_DUSK
public static final int L_FULL_MOON
public static final int L_MOONLESS
public static final int L_PITCH_BLACK
public static final int L_SIZE
public static final int WE_NONE
public static final int WE_LIGHT_RAIN
public static final int WE_MOD_RAIN
public static final int WE_HEAVY_RAIN
public static final int WE_DOWNPOUR
public static final int WE_LIGHT_SNOW
public static final int WE_MOD_SNOW
public static final int WE_HEAVY_SNOW
public static final int WE_SLEET
public static final int WE_ICE_STORM
public static final int WE_LIGHT_HAIL
public static final int WE_HEAVY_HAIL
public static final int WE_SIZE
public static final int WI_NONE
public static final int WI_LIGHT_GALE
public static final int WI_MOD_GALE
public static final int WI_STRONG_GALE
public static final int WI_STORM
public static final int WI_TORNADO_F13
public static final int WI_TORNADO_F4
public static final int WI_SIZE
public static final int DIR_SIZE
public static final int ATMO_VACUUM
public static final int ATMO_TRACE
public static final int ATMO_THIN
public static final int ATMO_STANDARD
public static final int ATMO_HIGH
public static final int ATMO_VHIGH
public static java.lang.String[] atmoNames
public static final int ATMO_SIZE
public static final int FOG_NONE
public static final int FOG_LIGHT
public static final int FOG_HEAVY
public static final int FOG_SIZE
| Constructor Detail |
|---|
public PlanetaryConditions()
public PlanetaryConditions(PlanetaryConditions other)
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic static java.lang.String getLightDisplayableName(int type)
public static java.lang.String getWeatherDisplayableName(int type)
public static java.lang.String getWindDisplayableName(int type)
public static java.lang.String getAtmosphereDisplayableName(int type)
public static java.lang.String getFogDisplayableName(int type)
public java.lang.String getWindDirName()
public java.lang.String getLightCurrentName()
public java.lang.String getWeatherCurrentName()
public java.lang.String getWindCurrentName()
public java.lang.String getAtmosphereCurrentName()
public java.lang.String getFogCurrentName()
public int getLightHitPenalty(boolean isWeapon)
public int getLightHeatBonus(int heat)
public int getLightPilotPenalty()
public int getWeatherHitPenalty(Entity en)
public int getWeatherPilotPenalty()
public int getGravityPilotPenalty()
public int getWindPilotPenalty(Entity en)
public void determineWind()
public int getIgniteModifiers()
public boolean putOutFire()
public int getTemperatureDifference(int high,
int low)
public java.lang.String cannotStartFire()
String with the reason why you cannot start a fire herepublic int getMovementMods(Entity en)
entity - - the entity in question
int with the modifier to movementpublic java.lang.String whyDoomed(Entity en)
public int getVisualRange(Entity en,
boolean targetSpotlight)
public int getDropRate()
public void setLight(int type)
public int getLight()
public void setWeather(int type)
public int getWeather()
public void setWindStrength(int type)
public int getWindStrength()
public void setWindDirection(int type)
public int getWindDirection()
public void setShiftingWindDirection(boolean b)
public boolean shiftingWindDirection()
public void setShiftingWindStrength(boolean b)
public boolean shiftingWindStrength()
public void setAtmosphere(int a)
public int getAtmosphere()
public void setTemperature(int tem)
public int getTemperature()
public boolean isVacuum()
public void setGravity(float f)
public float getGravity()
public void setEMI(boolean b)
public boolean hasEMI()
public int getFog()
public void setFog(int fog)
public void setTerrainAffected(boolean b)
public boolean isTerrainAffected()
public boolean isRecklessConditions()
public int getMaxWindStrength()
public void setMaxWindStrength(int strength)
public int getMinWindStrength()
public void setMinWindStrength(int strength)
public boolean isSandBlowing()
public void setBlowingSand(boolean b)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||