#include <terraintype.h>
Inheritance diagram for TerrainType::Weather:

Public Member Functions | |
| void | paint (Surface &s, SPoint pos) |
| displays the image on the screen coordinates x1/y1 | |
| const OverviewMapImage * | getQuickView () |
| Weather (TerrainType *base) | |
| ~Weather () | |
| void | runTextIO (PropertyContainer &pc) |
| void | read (tnstream &stream) |
| void | read (tnstream &stream, int version) |
| void | write (tnstream &stream) const |
| int | getMemoryFootprint () const |
Public Attributes | |
| Surface | image |
| the image of the field | |
| int | defensebonus |
| the defense bonus for the unit standing on this field. | |
| int | attackbonus |
| the attack bonus for the unit standing on this field. | |
| int | basicjamming |
| the view obstraction of the field | |
| TerrainType::MoveMalus | move_malus |
| the movement cost for the various units to move across this field | |
| int | bi_pict |
| the image index from the graphic set. -1 if graphics is not from graphic set. | |
| TerrainBits | art |
| the properties defining which unit can move onto this field and which not | |
| TerrainType * | terraintype |
| pointer to the outer structure | |
|
|
Definition at line 128 of file terraintype.h. |
|
|
Definition at line 147 of file terraintype.cpp. |
|
|
Definition at line 353 of file terraintype.cpp. References OverviewMapImage::getMemoryFootprint(), Surface::getMemoryFootprint(), and image. Referenced by TerrainType::getMemoryFootprint(). |
|
|
Definition at line 135 of file terraintype.cpp. |
|
||||||||||||
|
displays the image on the screen coordinates x1/y1
Definition at line 119 of file terraintype.cpp. References bi_pict, image, megaBlitter(), and nullParam. Referenced by MapRenderer::paintSingleField(). |
|
||||||||||||
|
Definition at line 205 of file terraintype.cpp. References art, attackbonus, basicjamming, bi_pict, defensebonus, image, minmalq, move_malus, Surface::read(), TerrainType::MoveMalus::read(), TerrainBits::read(), tnstream::readChar(), tnstream::readInt(), and tnstream::readWord(). |
|
|
Implements LoadableItemType. Definition at line 199 of file terraintype.cpp. References terrain_version. Referenced by TerrainType::read(). |
|
|
Implements LoadableItemType. Definition at line 459 of file terraintype.cpp. References art, attackbonus, basicjamming, bi_pict, cmovemalitypenum, cwettertypennum, defensebonus, extractFileName_withoutSuffix(), fatalError(), LoadableItemType::filename, graphicOperationNum, graphicOperations, TerrainType::id, image, minmalq, move_malus, snowify(), strrr(), terrainProperties, terrainPropertyNum, terraintype, TerrainType::weather, and weatherAbbrev. Referenced by TerrainType::runTextIO(). |
|
|
Implements LoadableItemType. Definition at line 258 of file terraintype.cpp. References art, attackbonus, basicjamming, bi_pict, defensebonus, image, move_malus, Surface::write(), TerrainType::MoveMalus::write(), and TerrainBits::write(). Referenced by TerrainType::write(). |
|
|
the properties defining which unit can move onto this field and which not
Definition at line 121 of file terraintype.h. Referenced by GuiFunctions::PutAntiSubMine::available(), read(), runTextIO(), tfield::setparams(), and write(). |
|
|
the attack bonus for the unit standing on this field.
Definition at line 105 of file terraintype.h. Referenced by tfield::getattackbonus(), read(), runTextIO(), and write(). |
|
|
the view obstraction of the field
Definition at line 108 of file terraintype.h. Referenced by tfield::getjamming(), read(), runTextIO(), and write(). |
|
|
the image index from the graphic set. -1 if graphics is not from graphic set.
Definition at line 118 of file terraintype.h. Referenced by ForestCalculation::Smoothing::GetNeighbourMask(), getQuickView(), paint(), read(), runTextIO(), ForestCalculation::Smoothing::SmoothIt(), and write(). |
|
|
the defense bonus for the unit standing on this field.
Definition at line 102 of file terraintype.h. Referenced by tfield::getdefensebonus(), read(), runTextIO(), and write(). |
|
|
the image of the field
Definition at line 99 of file terraintype.h. Referenced by getMemoryFootprint(), getQuickView(), paint(), read(), runTextIO(), and write(). |
|
|
the movement cost for the various units to move across this field
Definition at line 111 of file terraintype.h. Referenced by read(), runTextIO(), tfield::setparams(), and write(). |
|
|
pointer to the outer structure
Definition at line 124 of file terraintype.h. Referenced by DashboardPanel::eval(), tfield::getmovemalus(), tfield::getName(), SolarPowerplant::getPlus(), tfield::getweather(), SelectionHolder::pickup(), runTextIO(), tfield::setparams(), tfield::setweather(), transformMap(), viewterraininfo(), and tspfldloaders::writefields(). |
1.4.2