#include <buildingtype.h>
Inheritance diagram for BuildingType:

Public Types | |
| typedef multimap< LocalCoordinate, int > | DestructionObjects |
Public Member Functions | |
| int | getMoveMalusType () const |
| const Surface & | getPicture (const LocalCoordinate &localCoordinate, int weather=0, int constructionStep=0) const |
| void | paint (Surface &s, SPoint pos, const PlayerColor &player, int weather=0, int constructionStep=0) const |
| void | paint (Surface &s, SPoint pos) const |
| void | paintSingleField (Surface &s, SPoint pos, const LocalCoordinate &localCoordinate, const PlayerColor &player, int weather=0, int constructionStep=0) const |
| void | paintSingleField (Surface &s, SPoint pos, const LocalCoordinate &localCoordinate, int weather=0, int constructionStep=0) const |
| int | getBIPicture (const LocalCoordinate &localCoordinate, int weather=0, int constructionStep=0) const |
| bool | fieldExists (const LocalCoordinate &localCoordinate) const |
| BuildingType (void) | |
| MapCoordinate | getFieldCoordinate (const MapCoordinate &entryOnMap, const LocalCoordinate &localCoordinate) const |
| returns the Mapcoordinate of a buildings field | |
| LocalCoordinate | getLocalCoordinate (const MapCoordinate &entryOnMap, const MapCoordinate &field) const |
| converts a global coordinate into a local coordinate. | |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
| void | runTextIO (PropertyContainer &pc) |
| int | getMemoryFootprint () const |
Public Attributes | |
| DestructionObjects | destructionObjects |
| when the building is destroyed, it can leave rubble objects behind. If set to 0 no objects are being created | |
| LocalCoordinate | entry |
| int | _armor |
| the armor of the buildingtype. | |
| int | technologylevel |
| not used at the moment | |
| int | researchid |
| not used at the moment | |
| TerrainAccess | terrainaccess |
| the terrain properties which are necessary for the building to be constructed there | |
| int | construction_steps |
| the number of stages that are required to construct a building using a construction unit. Each stage has a separate picture. Range is 1 to 8 | |
| int | buildingheight |
| bitmapped: the level of height that this building will reside on. | |
| int | externalloadheight |
| bitmapped: units on these levels of height may be refuelled when standing next to the buildings entry | |
| bool | buildingNotRemovable |
Classes | |
| class | LocalCoordinate |
| A local coordinate referencing a single field that a building covers. More... | |
Definition at line 80 of file buildingtype.h.
|
|
Definition at line 105 of file buildingtype.h. |
|
|
Definition at line 68 of file buildingtype.cpp. References buildingNotRemovable, cwettertypennum, maxbuildingpicnum, and ContainerBaseType::productionEfficiency. |
|
|
||||||||||||||||
|
Definition at line 102 of file buildingtype.cpp. |
|
||||||||||||
|
returns the Mapcoordinate of a buildings field
Definition at line 173 of file buildingtype.cpp. References entry, BuildingType::LocalCoordinate::x, MapCoordinate::x, MapCoordinate::y, and BuildingType::LocalCoordinate::y. Referenced by GuiFunctions::BuildingConstruction::execute(), Reinforcements::execute(), Building::getFieldCoordinates(), BuildingItem::place(), ClipBoardBase::place(), putbuilding(), and putbuilding2(). |
|
||||||||||||
|
converts a global coordinate into a local coordinate.
Definition at line 186 of file buildingtype.cpp. References entry, fieldExists(), BuildingType::LocalCoordinate::x, MapCoordinate::x, BuildingType::LocalCoordinate::y, and MapCoordinate::y. Referenced by Building::getLocalCoordinate(). |
|
|
Implements MemorySizeQueryInterface. Definition at line 89 of file buildingtype.cpp. References cwettertypennum, Surface::getMemoryFootprint(), and maxbuildingpicnum. |
|
|
Implements ContainerBaseType. Definition at line 132 of file buildingtype.h. |
|
||||||||||||||||
|
Definition at line 108 of file buildingtype.cpp. References construction_steps, BuildingType::LocalCoordinate::x, and BuildingType::LocalCoordinate::y. Referenced by Building::getPicture(), and paintSingleField(). |
|
||||||||||||
|
Definition at line 132 of file buildingtype.cpp. References fieldExists(), and paintSingleField(). |
|
||||||||||||||||||||||||
|
Definition at line 123 of file buildingtype.cpp. References fieldExists(), and paintSingleField(). Referenced by BuildingItem::display(), and Building::getImage(). |
|
||||||||||||||||||||||||
|
Definition at line 157 of file buildingtype.cpp. References fielddisthalfx, fielddistx, fielddisty, getPicture(), megaBlitter(), nullParam, BuildingType::LocalCoordinate::x, and BuildingType::LocalCoordinate::y. |
|
||||||||||||||||||||||||||||
|
Definition at line 142 of file buildingtype.cpp. References fielddisthalfx, fielddistx, fielddisty, getPicture(), megaBlitter(), nullParam, BuildingType::LocalCoordinate::x, and BuildingType::LocalCoordinate::y. Referenced by BuildingTypeBaseWidget::display(), GuiFunctions::generate_gui_build_icon(), and paint(). |
|
|
|
|
|
the armor of the buildingtype. This does not necessarily be equal to the armor of a specific building during the game, since the map may modify the armor of buildings with a map parameter. Use Building::getArmor() to query the effective armor. Definition at line 115 of file buildingtype.h. Referenced by Building::getArmor(), read(), runTextIO(), and write(). |
|
|
bitmapped: the level of height that this building will reside on.
Definition at line 130 of file buildingtype.h. Referenced by attackpossible(), calcvisibilityfield(), Building::getEntry(), Building::getHeight(), BuildingSeen::getState(), tcomputebuildingview::init(), MapRenderer::paintSingleField(), read(), runTextIO(), tunitattacksbuilding::setup(), tsearchdestructbuildingfields::testfield(), and write(). |
|
|
Definition at line 166 of file buildingtype.h. Referenced by BuildingType(), read(), runTextIO(), tsearchdestructbuildingfields::testfield(), and write(). |
|
|
the number of stages that are required to construct a building using a construction unit. Each stage has a separate picture. Range is 1 to 8
Definition at line 127 of file buildingtype.h. Referenced by getPicture(), tcomputebuildingview::init(), BuildingItem::place(), putbuilding(), putbuilding2(), read(), runTextIO(), and write(). |
|
|
when the building is destroyed, it can leave rubble objects behind. If set to 0 no objects are being created
Definition at line 107 of file buildingtype.h. Referenced by read(), runTextIO(), Building::unchainbuildingfromfield(), and write(). |
|
|
Definition at line 109 of file buildingtype.h. Referenced by Building::chainbuildingtofield(), GuiFunctions::BuildingConstruction::execute(), Building::getEntryField(), getFieldCoordinate(), getLocalCoordinate(), read(), runTextIO(), tfield::setparams(), and write(). |
|
|
bitmapped: units on these levels of height may be refuelled when standing next to the buildings entry
Definition at line 134 of file buildingtype.h. Referenced by VehicleService::FieldSearch::checkBuilding2Vehicle(), read(), runTextIO(), and write(). |
|
|
not used at the moment
Definition at line 121 of file buildingtype.h. |
|
|
not used at the moment
Definition at line 118 of file buildingtype.h. Referenced by read(), runTextIO(), and write(). |
|
|
the terrain properties which are necessary for the building to be constructed there
Definition at line 124 of file buildingtype.h. Referenced by BuildingItem::place(), read(), runTextIO(), and write(). |
1.4.2