#include <weatherarea.h>
Public Member Functions | |
| WeatherSystem (GameMap *map) | |
| WeatherSystem (GameMap *map, int areaSpawns, float windspeed2FieldRatio, unsigned int timeInterval=6, WeatherSystemMode mode=EVENTMODE, FalloutType defaultFallout=DRY) | |
| ~WeatherSystem () | |
| void | setSeedValue () |
| void | setLikelihoodFallOut (const Percentages &fol) throw (IllegalValueException) |
| void | setLikelihoodWindDirection (const Percentages &wd) throw (IllegalValueException) |
| void | setLikelihoodWindSpeed (const Percentages &wd) throw (IllegalValueException) |
| void | setRandomSizeBorders (float lower, float upper) |
| void | setGlobalWind (unsigned int speed, Direction direction) throw (IllegalValueException) |
| void | setDefaultFallout (FalloutType newFalloutType) |
| void | addWeatherArea (WeatherArea *area, GameTime time) |
| void | removeWeatherArea (GameTime time, WeatherArea *area) |
| void | removeWindChange (int time, WindData) |
| void | addGlobalWindChange (int speed, Direction direction, int time) throw (IllegalValueException) |
| void | update () |
| void | write (tnstream &outputStream) const |
| void | read (tnstream &inputStream) |
| pair< GameTime, WeatherArea * > | getNthWeatherArea (int n) const |
| const WeatherArea * | getNthActiveWeatherArea (int n) const |
| pair< int, WindData > | getNthWindChange (int n) const |
| const int | getQueuedWeatherAreasSize () const |
| const int | getActiveWeatherAreasSize () const |
| const int | getQueuedWindChangesSize () const |
| void | setSeedValueGeneration (bool setNew) |
| unsigned int | createRandomValue (unsigned int limit=1000) |
| void | skipRandomValue () const |
| FalloutType | getDefaultFalloutType () const |
| int | getCurrentWindSpeed () const |
| Direction | getCurrentWindDirection () const |
| int | getMaxForecast () const |
| bool | isSeedValueSet () |
| int | getSpawnsAmount () |
| void | setEventMode (const WeatherSystemMode &mode) |
| int | getTimeInterval () |
| void | setTimeInterval (int i) |
| void | setWindSpeed2FieldRatio (float ratio) |
| void | setSpawnAmount (int a) |
| void | setLowerDurationLimit (int udl) |
| void | setUpperDurationLimit (int ldl) |
| const WeatherSystemMode | getEventMode () const |
| float | getWindspeed2FieldRatio () const |
| const int | getFalloutPercentage (int i) const |
| const int | getWindSpeedPercentage (int i) const |
| const int | getWindDirPercentage (int i) const |
| const float | getLowerSizeLimit () const |
| const float | getUpperSizeLimit () const |
| const int | getLowerDurationLimit () const |
| const int | getUpperDurationLimit () const |
| WindData | getWindDataOfTurn (int turn) const |
Static Public Attributes | |
| static const int | FallOutNum = 6 |
| static const int | WindDirNum = 6 |
| static const int | WINDSPEEDDETAILLEVEL = 8 |
| static int | legacyWindSpeed = 0 |
| static int | legacyWindDirection = 0 |
|
|
Definition at line 488 of file weatherarea.cpp. References update(). |
|
||||||||||||||||||||||||||||
|
Definition at line 450 of file weatherarea.cpp. References FallOutNum, GameMap::newRound, setLikelihoodFallOut(), setLikelihoodWindDirection(), setLikelihoodWindSpeed(), update(), WindDirNum, and WINDSPEEDDETAILLEVEL. |
|
|
Definition at line 494 of file weatherarea.cpp. |
|
||||||||||||||||
|
Definition at line 810 of file weatherarea.cpp. |
|
||||||||||||
|
Definition at line 593 of file weatherarea.cpp. |
|
|
Definition at line 794 of file weatherarea.cpp. |
|
|
Definition at line 850 of file weatherarea.cpp. |
|
|
Definition at line 333 of file weatherarea.h. Referenced by WeatherPanel::WeatherPanel(). |
|
|
Definition at line 329 of file weatherarea.h. Referenced by WeatherPanel::WeatherPanel(). |
|
|
Definition at line 325 of file weatherarea.h. |
|
|
Definition at line 374 of file weatherarea.h. |
|
|
Definition at line 380 of file weatherarea.h. |
|
|
Definition at line 400 of file weatherarea.h. |
|
|
Definition at line 392 of file weatherarea.h. |
|
|
Definition at line 549 of file weatherarea.cpp. |
|
|
Definition at line 514 of file weatherarea.cpp. |
|
|
Definition at line 502 of file weatherarea.cpp. |
|
|
Definition at line 826 of file weatherarea.cpp. |
|
|
Definition at line 527 of file weatherarea.cpp. |
|
|
Definition at line 821 of file weatherarea.cpp. |
|
|
Definition at line 342 of file weatherarea.h. |
|
|
Definition at line 350 of file weatherarea.h. |
|
|
Definition at line 404 of file weatherarea.h. |
|
|
Definition at line 396 of file weatherarea.h. |
|
|
Definition at line 712 of file weatherarea.cpp. References WindData::direction, WindData::speed, GameMap::time, and GameTime::turn(). |
|
|
Definition at line 388 of file weatherarea.h. |
|
|
Definition at line 377 of file weatherarea.h. Referenced by update(). |
|
|
Definition at line 384 of file weatherarea.h. |
|
|
Definition at line 339 of file weatherarea.h. Referenced by update(). |
|
|
Definition at line 911 of file weatherarea.cpp. References WindData::direction, WeatherArea::read(), tnstream::readFloat(), tnstream::readInt(), GameTime::set(), skipRandomValue(), and WindData::speed. |
|
||||||||||||
|
Definition at line 598 of file weatherarea.cpp. |
|
||||||||||||
|
Definition at line 816 of file weatherarea.cpp. |
|
|
Definition at line 589 of file weatherarea.cpp. |
|
|
Definition at line 346 of file weatherarea.h. |
|
||||||||||||
|
Definition at line 585 of file weatherarea.cpp. Referenced by update(). |
|
|
Definition at line 534 of file weatherarea.cpp. Referenced by WeatherSystem(). |
|
|
Definition at line 553 of file weatherarea.cpp. Referenced by WeatherSystem(). |
|
|
Definition at line 565 of file weatherarea.cpp. Referenced by WeatherSystem(). |
|
|
Definition at line 366 of file weatherarea.h. |
|
||||||||||||
|
Definition at line 578 of file weatherarea.cpp. |
|
|
Definition at line 784 of file weatherarea.cpp. Referenced by update(). |
|
|
Definition at line 531 of file weatherarea.cpp. |
|
|
Definition at line 362 of file weatherarea.h. |
|
|
Definition at line 354 of file weatherarea.h. |
|
|
Definition at line 370 of file weatherarea.h. |
|
|
Definition at line 358 of file weatherarea.h. |
|
|
Definition at line 789 of file weatherarea.cpp. Referenced by read(). |
|
|
Definition at line 728 of file weatherarea.cpp. References GameTime::abstime, getWindspeed2FieldRatio(), isSeedValueSet(), RANDOMMODE, WeatherArea::removeArea(), GameTime::set(), setGlobalWind(), setSeedValue(), GameMap::time, GameTime::turn(), and WeatherArea::updateMovementVector(). Referenced by WeatherSystem(). |
|
|
Definition at line 855 of file weatherarea.cpp. References tnstream::writeFloat(), and tnstream::writeInt(). |
|
|
Definition at line 284 of file weatherarea.h. Referenced by WeatherSystem(). |
|
|
Definition at line 448 of file weatherarea.cpp. |
|
|
Definition at line 447 of file weatherarea.cpp. |
|
|
Definition at line 285 of file weatherarea.h. Referenced by AddWindChangeDialog::AddWindChangeDialog(), and WeatherSystem(). |
|
|
Definition at line 286 of file weatherarea.h. Referenced by WeatherSystem(), and WindSpeedSettingsDialog::WindSpeedSettingsDialog(). |
1.4.2