#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) |
| registers the properties of this item for loading/writing into asctxt files | |
| void | read (tnstream &stream) |
| read the binary representation of this item from the given stream | |
| void | read (tnstream &stream, int version) |
| void | write (tnstream &stream) const |
| write the binary representation of this item to the given stream | |
| 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 97 of file terraintype.h.
| TerrainType::Weather::Weather | ( | TerrainType * | base | ) | [inline] |
Definition at line 132 of file terraintype.h.
| TerrainType::Weather::~Weather | ( | ) |
Definition at line 164 of file terraintype.cpp.
displays the image on the screen coordinates x1/y1
Definition at line 136 of file terraintype.cpp.
References bi_pict, image, megaBlitter(), and nullParam.
Referenced by MapRenderer::paintSingleField().
| const OverviewMapImage * TerrainType::Weather::getQuickView | ( | ) |
Definition at line 152 of file terraintype.cpp.
References bi_pict, and image.
Referenced by OverviewMapHolder::updateField().
| void TerrainType::Weather::runTextIO | ( | PropertyContainer & | pc | ) | [virtual] |
registers the properties of this item for loading/writing into asctxt files
Implements LoadableItemType.
Definition at line 479 of file terraintype.cpp.
References PropertyContainer::addBool(), PropertyContainer::addDFloatArray(), PropertyContainer::addImage(), PropertyContainer::addInteger(), PropertyContainer::addNamedInteger(), PropertyContainer::addString(), PropertyContainer::addTagArray(), art, attackbonus, basicjamming, bi_pict, cmovemalitypenum, cwettertypennum, defensebonus, extractFileName_withoutSuffix(), fatalError(), LoadableItemType::filename, graphicOperationNum, graphicOperations, TerrainType::id, image, PropertyContainer::isReading(), minmalq, move_malus, snowify(), strrr(), terrainProperties, terrainPropertyNum, terraintype, TerrainType::weather, and weatherAbbrev.
Referenced by TerrainType::runTextIO().
| void TerrainType::Weather::read | ( | tnstream & | stream | ) | [virtual] |
read the binary representation of this item from the given stream
Implements LoadableItemType.
Definition at line 216 of file terraintype.cpp.
References terrain_version.
Referenced by TerrainType::read().
| void TerrainType::Weather::read | ( | tnstream & | stream, | |
| int | version | |||
| ) |
Definition at line 222 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(), tnstream::readString(), and tnstream::readWord().
| void TerrainType::Weather::write | ( | tnstream & | stream | ) | const [virtual] |
write the binary representation of this item to the given stream
Implements LoadableItemType.
Definition at line 278 of file terraintype.cpp.
References art, attackbonus, basicjamming, bi_pict, defensebonus, image, move_malus, Surface::write(), TerrainType::MoveMalus::write(), TerrainBits::write(), tnstream::writeChar(), tnstream::writeInt(), and tnstream::writeString().
| int TerrainType::Weather::getMemoryFootprint | ( | ) | const |
Definition at line 371 of file terraintype.cpp.
References OverviewMapImage::getMemoryFootprint(), Surface::getMemoryFootprint(), and image.
the image of the field
Definition at line 103 of file terraintype.h.
Referenced by getMemoryFootprint(), getQuickView(), paint(), read(), runTextIO(), and write().
the defense bonus for the unit standing on this field.
Definition at line 106 of file terraintype.h.
Referenced by MapField::getdefensebonus(), read(), runTextIO(), and write().
the attack bonus for the unit standing on this field.
Definition at line 109 of file terraintype.h.
Referenced by MapField::getattackbonus(), read(), runTextIO(), and write().
the view obstraction of the field
Definition at line 112 of file terraintype.h.
Referenced by MapField::getjamming(), read(), runTextIO(), and write().
the movement cost for the various units to move across this field
Definition at line 115 of file terraintype.h.
Referenced by read(), runTextIO(), MapField::setparams(), and write().
the image index from the graphic set. -1 if graphics is not from graphic set.
Definition at line 122 of file terraintype.h.
Referenced by ForestCalculation::Smoothing::GetNeighbourMask(), getQuickView(), paint(), read(), runTextIO(), ForestCalculation::Smoothing::SmoothIt(), and write().
the properties defining which unit can move onto this field and which not
Definition at line 125 of file terraintype.h.
Referenced by read(), runTextIO(), MapField::setparams(), and write().
pointer to the outer structure
Definition at line 128 of file terraintype.h.
Referenced by calculateobject(), DashboardPanel::eval(), MapField::getmovemalus(), MapField::getName(), MapField::getTerrainType(), MapField::getWeather(), SelectionHolder::pickup(), runTextIO(), MapField::setparams(), MapField::setWeather(), viewterraininfo(), and tspfldloaders::writefields().
1.5.1