Class PlanetaryConditions
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructorCreates new PlanetaryConditions that is a duplicate of another -
Method Summary
Modifier and TypeMethodDescriptionvoidalterConditions(PlanetaryConditions conditions) clone()clone!voidintgetEMI()getFog()floatintgravity penalties to PSRs According to email from TPTB, you apply a penalty for every 0.5 gravities above or below 1 (rounding up)intmodifiers for fire ignitiongetLight()intgetLightHeatBonus(int heat) heat bonus to hit for being overheated in darkness TO:AR 6th ed.intgetLightHitPenalty(boolean isWeapon) to-hit penalty for light TO:AR 6th ed.intPlanetary conditions on movement, except for gravityintintgetTemperatureDifference(int high, int low) Returns how much higher or lower than a given range, divided by ten, rounded up, the temperature isstatic StringgetTemperatureDisplayableName(int temp) intgetVisualRange(Entity en, boolean targetIlluminated) visual range based on conditions TO:AR 6th ed.intto-hit penalty for weatherintpiloting penalty for weathergetWind()intpiloting penalty for windbooleanbooleanbooleanisEMI()booleanstatic booleanisExtremeTemperature(int temperature) booleanbooleanbooleanisFog()booleanWhether a crew that ejects into these conditions is killed by the environment alone.booleanbooleanbooleanEverything out there that would kill a crew who ejects into it, as separate hazards.booleanDo a roll for these weather conditions putting out fire return booleanvoidsetAtmosphere(Atmosphere atmosphere) voidsetAtmosphericTaint(AtmosphericTaint atmosphericTaint) Sets how badly the air is fouled and in what way, per Tainted and Toxic Atmospheres (TO:AR p.54).voidsetBlowingSand(BlowingSand blowingSand) voidvoidvoidsetGravity(float f) voidvoidsetShiftingWindDirection(boolean b) voidsetShiftingWindStrength(boolean b) voidsetSleet(boolean sleet) voidsetTemperature(int tem) static intsetTempFromWeather(Weather weather, int temperature) voidsetTerrainAffected(boolean b) voidsetWeather(Weather weather) voidvoidsetWindDirection(WindDirection windDirection) static WindsetWindFromBlowingSand(BlowingSand blowingSand, Wind wind) static WindsetWindFromWeather(Weather weather, Wind wind) voidsetWindMax(Wind windMax) voidsetWindMin(Wind windMin) booleanbooleantoString()is the given entity type doomed in these conditions?What it is out there that would kill a crew that ejects, phrased to sit inside a sentence.
-
Field Details
-
BLACK_ICE_TEMP
public static final int BLACK_ICE_TEMP- See Also:
-
-
Constructor Details
-
PlanetaryConditions
public PlanetaryConditions()Constructor -
PlanetaryConditions
Creates new PlanetaryConditions that is a duplicate of another
-
-
Method Details
-
clone
clone! -
alterConditions
-
setLight
-
getLight
- Returns:
- The time of day lighting conditions (one of PlanetaryConditions.L_*).
-
setWeather
-
getWeather
-
setWind
-
getWind
-
setWindMin
-
getWindMin
-
setWindMax
-
getWindMax
-
setWindDirection
-
getWindDirection
-
setAtmosphere
-
getAtmosphere
-
setAtmosphericTaint
Sets how badly the air is fouled and in what way, per Tainted and Toxic Atmospheres (TO:AR p.54). This is independent ofsetAtmosphere(Atmosphere), which sets how much air there is rather than what is in it.- Parameters:
atmosphericTaint- the taint category and severity to use
-
getAtmosphericTaint
- Returns:
- how badly the air is fouled and in what way, per Tainted and Toxic Atmospheres (TO:AR p.54).
AtmosphericTaint.BREATHABLEis the default and has no effect on play.
-
getFog
-
setFog
-
isFog
public boolean isFog() -
getBlowingSand
-
setBlowingSand
-
isBlowingSand
public boolean isBlowingSand() -
setEMI
-
getEMI
-
isEMI
public boolean isEMI() -
getTemperatureDisplayableName
-
getLightHitPenalty
public int getLightHitPenalty(boolean isWeapon) to-hit penalty for light TO:AR 6th ed. p. 56 -
getLightHeatBonus
public int getLightHeatBonus(int heat) heat bonus to hit for being overheated in darkness TO:AR 6th ed. p. 56 -
getWeatherHitPenalty
to-hit penalty for weather -
getWeatherPilotPenalty
public int getWeatherPilotPenalty()piloting penalty for weather -
getGravityPilotPenalty
public 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) -
getWindPilotPenalty
piloting penalty for wind -
determineWind
public void determineWind() -
getIgniteModifiers
public int getIgniteModifiers()modifiers for fire ignition -
putOutFire
public boolean putOutFire()Do a roll for these weather conditions putting out fire return boolean -
getTemperatureDifference
public int getTemperatureDifference(int high, int low) Returns how much higher or lower than a given range, divided by ten, rounded up, the temperature is -
cannotStartFire
- Returns:
- a
Stringwith the reason why you cannot start a fire here
-
getMovementMods
Planetary conditions on movement, except for gravity- Parameters:
en- - the entity in question- Returns:
- an
intwith the modifier to movement
-
whyDoomed
is the given entity type doomed in these conditions?- Returns:
- a string given the reason for being doomed, null if not doomed
-
isLethalToEjectedCrew
public boolean isLethalToEjectedCrew()Whether a crew that ejects into these conditions is killed by the environment alone.An ejected MekWarrior or vehicle crew arrives on the board as a conventional infantry platoon with no space suit and no XCT gear, so every condition that kills unprotected foot troops kills them: unbreathable air, a tainted or toxic atmosphere, a storm or tornado, and extreme heat or cold. With auto-ejection switched on, a survivable ammunition explosion therefore becomes a dead pilot, which is the trap RFE #5579 asks the player be warned about before deploying.
- Returns:
trueif an ejecting crew would be killed by the conditions themselves
-
whyLethalToEjectedCrew
What it is out there that would kill a crew that ejects, phrased to sit inside a sentence.Every condition that would do it is named, not just the first. Naming one when two apply invites the player to fix that one and think the crew is safe, when the other is still lethal.
- Returns:
- the conditions that would kill an ejecting crew, joined for reading, or
nullif none would
-
lethalEjectionHazards
Everything out there that would kill a crew who ejects into it, as separate hazards.The warning before deployment needs these one at a time rather than as a sentence, because a crew's armor kit answers some of them and not others.
- Returns:
- the hazards present, in reading order, or an empty set when ejecting is survivable
-
isBlowingSandActive
public boolean isBlowingSandActive() -
getVisualRange
visual range based on conditions TO:AR 6th ed. p. 189 -
getDropRate
public int getDropRate() -
setShiftingWindDirection
public void setShiftingWindDirection(boolean b) -
shiftingWindDirection
public boolean shiftingWindDirection() -
setShiftingWindStrength
public void setShiftingWindStrength(boolean b) -
shiftingWindStrength
public boolean shiftingWindStrength() -
setTemperature
public void setTemperature(int tem) -
getTemperature
public int getTemperature() -
isExtremeTemperature
public static boolean isExtremeTemperature(int temperature) -
isExtremeTemperature
public boolean isExtremeTemperature() -
setGravity
public void setGravity(float f) -
getGravity
public float getGravity() -
setTerrainAffected
public void setTerrainAffected(boolean b) -
isTerrainAffected
public boolean isTerrainAffected() -
isRecklessConditions
public boolean isRecklessConditions() -
setTempFromWeather
-
setWindFromWeather
-
isSleeting
public boolean isSleeting() -
setSleet
public void setSleet(boolean sleet) -
setWindFromBlowingSand
-
isExtremeTemperatureHeat
public boolean isExtremeTemperatureHeat() -
isExtremeTemperatureCold
public boolean isExtremeTemperatureCold() -
getGravityIndicator
-
getTemperatureIndicator
-
toString
-