|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Climate
A climate represents the entire weather pattern of an area It does most of the mundane things related to weather changes based on season, area, and other factors.
| Field Summary | |
|---|---|
static int |
NUM_WEATHER
constant describing the number of weather types. |
static int |
WEATHER_BLIZZARD
constant describing blizzardous weather. |
static int |
WEATHER_CLEAR
constant describing clear or no weather. |
static int |
WEATHER_CLOUDY
constant describing cloudy weather. |
static java.lang.String[] |
WEATHER_DESCS
descriptive strings for the Climate.WEATHER_* constants, ordered by their value. |
static int |
WEATHER_DROUGHT
constant describing drought condition weather. |
static int |
WEATHER_DUSTSTORM
constant describing duststorming weather. |
static int |
WEATHER_HAIL
constant describing haily weather. |
static int |
WEATHER_HEAT_WAVE
constant describing heat wave weather. |
static int |
WEATHER_RAIN
constant describing rainy weather. |
static int |
WEATHER_SLEET
constant describing sleety weather. |
static int |
WEATHER_SNOW
constant describing snowy weather. |
static int |
WEATHER_THUNDERSTORM
constant describing thunderstorm weather. |
static int |
WEATHER_TICK_DOWN
constant defining how often weather changes in the climates |
static int |
WEATHER_WINDY
constant describing windy weather. |
static int |
WEATHER_WINTER_COLD
constant describing harsh cold weather. |
| Method Summary | |
|---|---|
int |
adjustMovement(int base,
Room room)
If applicable, thies method will return the base movement cost of the given mob, modified up or down based on the room given. |
int |
adjustWaterConsumption(int base,
Room room)
If applicable, thies method will return the base water thirstiness of the given mob, modified up or down based on the room given. |
boolean |
canSeeTheMoon(Room room,
Ability butNotA)
Returns whether a player can see the moon from the current room. |
boolean |
canSeeTheStars(Room room)
Returns whether a player can see the stars from the current room. |
boolean |
canSeeTheSun(Room room)
Returns whether a player can see the sun from the current room. |
void |
forceWeatherTick(Area A)
This method forces the weather to change to what is designated by the nextWeatherType(). |
java.lang.String |
getNextWeatherDescription(Area A)
Returns a readable string describing the upcoming weather conditions in the given area, assuming this climate is the correct one. |
java.lang.String |
getWeatherDescription(Area A)
Returns a readable string describing the weather conditions in the given area, assuming this climate is the correct one. |
java.lang.String |
nextWeatherDescription(Room room)
Returns a readable description of the weather that will be upcoming for the given room. |
int |
nextWeatherType(Room room)
Returns the upcoming specific weather situation for the given room. |
void |
setCurrentWeatherType(int weatherCode)
Sets the current specific weather situation for this area. |
void |
setNextWeatherType(int weatherCode)
Sets the upcoming specific weather situation for this area. |
java.lang.String |
weatherDescription(Room room)
Returns a readable description of the weather for the given room. |
int |
weatherType(Room room)
Returns the specific weather situation for the given room. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final int WEATHER_CLEAR
static final int WEATHER_CLOUDY
static final int WEATHER_WINDY
static final int WEATHER_RAIN
static final int WEATHER_THUNDERSTORM
static final int WEATHER_SNOW
static final int WEATHER_HAIL
static final int WEATHER_HEAT_WAVE
static final int WEATHER_SLEET
static final int WEATHER_BLIZZARD
static final int WEATHER_DUSTSTORM
static final int WEATHER_DROUGHT
static final int WEATHER_WINTER_COLD
static final int NUM_WEATHER
static final int WEATHER_TICK_DOWN
static final java.lang.String[] WEATHER_DESCS
| Method Detail |
|---|
int weatherType(Room room)
room - the room to evaluate.
Climate,
setCurrentWeatherType(int)int nextWeatherType(Room room)
room - the room to evaluate.
Climate,
setNextWeatherType(int)void setNextWeatherType(int weatherCode)
weatherCode - the Climate.WEATHER_* constantClimate,
nextWeatherType(Room)void setCurrentWeatherType(int weatherCode)
weatherCode - the Climate.WEATHER_* constantClimate,
weatherType(Room)java.lang.String weatherDescription(Room room)
room - the room to evaluate
java.lang.String nextWeatherDescription(Room room)
room - the room to evaluate
boolean canSeeTheStars(Room room)
room - the room vantage point
boolean canSeeTheMoon(Room room,
Ability butNotA)
room - the room vantage pointbutNotA - an ability to exempt from moon flags
boolean canSeeTheSun(Room room)
room - the room vantage point
java.lang.String getWeatherDescription(Area A)
A - the area to evaluate
java.lang.String getNextWeatherDescription(Area A)
A - the area to evaluate
void forceWeatherTick(Area A)
A - the area to calculate next weather for.
int adjustWaterConsumption(int base,
Room room)
base - the water thirst gain to start withroom - the room the mob is in
int adjustMovement(int base,
Room room)
base - the movement loss to start withroom - the room the mob is moving through
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||