#include <sigc++/sigc++.h>
#include "newfont.h"
#include "typen.h"
#include "gamemap.h"
Include dependency graph for spfst.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| tfield * | getfield (int x, int y) |
| returns the field at the given coordinates | |
| void | putbuilding (const MapCoordinate &entryPosition, int color, const BuildingType *buildingtyp, int completion, int ignoreunits=0) |
| void | putbuilding2 (const MapCoordinate &entryPosition, int color, BuildingType *buildingtyp) |
| void | calculateallobjects (GameMap *m=actmap) |
| recalculates the connection (like road interconnections) of all objects on the map | |
| void | calculateobject (int x, int y, bool mof, const ObjectType *obj, GameMap *gamemap=actmap) |
| recalculates the connection (like road interconnections) of an object | |
| void | calculateobject (const MapCoordinate &pos, bool mof, const ObjectType *obj, GameMap *gamemap=actmap) |
| int | fieldAccessible (const tfield *field, const Vehicle *vehicle, int uheight=-2, const bool *attacked=NULL, bool ignoreVisibility=false) |
| void | checkunitsforremoval (void) |
| removes all units that cannot exist any more, either due to invalid terrin (like tanks on melting ice) or too much wind (eg. | |
| void | checkobjectsforremoval (void) |
| removes all objects that cannot exist where they currently are (terrainaccess) | |
| int | getmaxwindspeedforunit (const Vehicle *eht) |
| returns the maximum wind speed that the unit can endure | |
| int | getwindheightforunit (const Vehicle *eht, int uheight=-1) |
| Wind may be different at different heights. | |
| int | terrainaccessible (const tfield *field, const Vehicle *vehicle, int uheight=-1) |
| Checks if the unit can drive on the field. | |
| int | terrainaccessible2 (const tfield *field, const Vehicle *vehicle, int uheight=-1) |
| Checks if the unit can drive on the field. | |
| int | terrainaccessible2 (const tfield *field, const TerrainAccess &terrainAccess, int uheight) |
| Checks if the field can be accessed. | |
| int | getheightdelta (int height1, int height2) |
| {@ | |
| int | getheightdelta (const ContainerBase *c1, const ContainerBase *c2) |
| bool | fieldvisiblenow (const tfield *pe, int player=actmap->actplayer, GameMap *map=actmap) |
| {@ | |
| bool | fieldvisiblenow (const tfield *pe, Vehicle *veh, int player=actmap->actplayer) |
| VisibilityStates | fieldVisibility (const tfield *pe, int player=actmap->actplayer) |
| {@ | |
| VisibilityStates | fieldVisibility (const tfield *pe, int player, GameMap *gamemap) |
| void | displaymap () |
Variables | |
| Schriften | schriften |
| GameMap * | actmap |
| SigC::Signal0< void > | repaintMap |
| }@ | |
| SigC::Signal0< void > | repaintDisplay |
| SigC::Signal0< void > | updateFieldInfo |
| SigC::Signal0< void > | cursorMoved |
| SigC::Signal0< void > | viewChanged |
| the view of the player onto the map changed, for example because he scrolled the map | |
| SigC::Signal1< void, GameMap * > | mapChanged |
| SigC::Signal1< void, ContainerBase * > | showContainerInfo |
| SigC::Signal1< void, Vehicletype * > | showVehicleTypeInfo |
| SigC::Signal0< bool > | idleEvent |
spfst comes from german "Spielfeldsteuerung" :-)
Definition in file spfst.h.
|
|
recalculates the connection (like road interconnections) of all objects on the map
Definition at line 664 of file spfst.cpp. References ForestCalculation::calculateforest(), calculateobject(), tfield::objects, and tfield::setparams(). Referenced by GameMap::calculateAllObjects(), execaction(), tloadBImap::LoadFromFile(), tsavegameloaders::loadgame(), tnetworkloaders::loadnwgame(), GameMap::resize(), and transformMap(). |
|
||||||||||||||||||||
|
Definition at line 561 of file spfst.cpp. References calculateobject(). |
|
||||||||||||||||||||||||
|
recalculates the connection (like road interconnections) of an object
Definition at line 570 of file spfst.cpp. References ObjectType::AutoBorder, calculateobject(), cbbuildingentry, GameMap::getField(), getnextfield(), GameMap::getobjecttype_byid(), getTerrainBitType(), ObjectType::KeepOrientation, ObjectType::netBehaviour, ObjectType::NetToBorder, ObjectType::NetToBuildingEntry, ObjectType::NetToBuildings, ObjectType::NetToSelf, ContainerBaseType::NoObjectChaining, Object::setdir(), tfield::setparams(), sidenum, and ObjectType::SpecialForest. |
|
|
removes all objects that cannot exist where they currently are (terrainaccess)
Definition at line 333 of file spfst.cpp. References tfield::bdt, getfield(), tfield::getweather(), tfield::objects, and tfield::removeobject(). Referenced by MapChangeCompleted::execute(). |
|
|
removes all units that cannot exist any more, either due to invalid terrin (like tanks on melting ice) or too much wind (eg. hoovercrafts in a storm) Definition at line 347 of file spfst.cpp. References TerrainAccess::accessible(), tfield::bdt, chfahrend, getfield(), getmaxwindspeedforunit(), getUnitReference(), Vehicle::height, maxwindspeed, GameMap::player, Vehicletype::terrainaccess, Vehicle::typ, tfield::vehicle, Player::vehicleList, GameMap::weather, GameMap::Weather::windSpeed, Vehicle::xpos, and Vehicle::ypos. Referenced by GameMap::endTurn(), and MapChangeCompleted::execute(). |
|
|
||||||||||||||||||||||||
|
tests if the vehicle can move onto the field
Definition at line 121 of file spfst.cpp. References GameMap::actplayer, attackpossible28(), cbbuildingentry, chgetaucht, chschwimmend, chtieffliegend, ContainerBase::color, fieldVisibility(), getheightdelta(), ContainerBase::getMap(), getTerrainBitType(), Vehicletype::height, Vehicle::height, log2(), PEACE, GameMap::player, terrainaccessible(), Vehicle::typ, vehicleplattfahrbar(), and visible_not. Referenced by SearchReconquerBuilding::canUnitCapture(), AStar::findPath(), AStar3D::findPath(), AStar::getMoveCost(), AStar3D::getMoveCost(), ClipBoardBase::place(), and FindUnitPlacementPos::testfield(). |
|
||||||||||||||||
|
Definition at line 545 of file spfst.cpp. References GameMap::getInitialMapVisibility(), tfield::visible, visible_all, and visible_not. |
|
||||||||||||||||
|
{@ evaluates the visibility of a field
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
{@ evaluates the visibility of a field
|
|
||||||||||||
|
||||||||||||
|
Definition at line 468 of file spfst.cpp. References ContainerBase::getHeight(), getheightdelta(), and log2(). |
|
||||||||||||
|
{@ Since floating and ground based are assumed to be the same effective height, a simple subtraction isn't sufficient. Height is a numeric (and not bitmapped) value |
|
|
returns the maximum wind speed that the unit can endure
Definition at line 407 of file spfst.cpp. References tfield::bdt, cbfestland, cbharbour, cbwater0, chfahrend, chhochfliegend, chschwimmend, chtieffliegend, getfield(), getTerrainBitType(), log2(), maxint, maxwindspeed, and tfield::vehicle. Referenced by checkunitsforremoval(), GameMap::endTurn(), and DashboardPanel::eval(). |
|
||||||||||||
|
Wind may be different at different heights. This function returns the index for the wind array. If uheight != -1 it is assumed the unit was uheight instead the actual level of height Definition at line 393 of file spfst.cpp. References chfliegend, chhochfliegend, and Vehicle::height. |
|
||||||||||||||||||||||||
|
Definition at line 206 of file spfst.cpp. References tfield::building, BuildingType::construction_steps, fatalError(), BuildingType::fieldExists(), GameMap::getField(), BuildingType::getFieldCoordinate(), Building::setCompletion(), and tfield::vehicle. Referenced by BuildingItem::place(). |
|
||||||||||||||||
|
||||||||||||||||
|
Checks if the unit can drive on the field.
Definition at line 67 of file spfst.cpp. References terrainaccessible2(). Referenced by Vehicle::canMove(), fieldAccessible(), tunit::init(), movebuilding(), VehicleItem::place(), and tmapgenerator::setmap(). |
|
||||||||||||||||
|
Checks if the field can be accessed.
Definition at line 88 of file spfst.cpp. References TerrainAccess::accessible(), tfield::bdt, cbwater, cbwater2, cbwater3, chgetaucht, chschwimmend, chtieffliegend, chtiefgetaucht, and getTerrainBitType(). |
|
||||||||||||||||
|
Checks if the unit can drive on the field.
Definition at line 76 of file spfst.cpp. References Vehicletype::height, Vehicle::height, Vehicletype::terrainaccess, terrainaccessible2(), and Vehicle::typ. |
|
|
|
Definition at line 46 of file spfst.cpp. Referenced by MapDisplayPG::eventMouseMotion(), ExchangeGraphics::ExchangeGraphics(), main(), NewGuiHost::NewGuiHost(), Maped_MainScreenWidget::setupStatusBar(), and UnitMovementRangeLayer::UnitMovementRangeLayer(). |
|
|
Definition at line 51 of file spfst.cpp. Referenced by ASC_PG_App::ASC_PG_App(), and OverviewMapHolder::connect(). |
|
|
Definition at line 50 of file spfst.cpp. Referenced by diplomaticChange(), execaction(), GuiFunctions::JumpDriveIcon::execute(), VehicleMovement::execute(), main(), mirrorMap(), newmap(), pasteArea(), placeCurrentItem(), and MainScreenWidget::setup(). |
|
|
Definition at line 44 of file spfst.cpp. Referenced by tdialogbox::done(), execuseraction(), gamethread(), tdialogbox::redrawall(), tdialogbox::redrawall2(), tdialogbox::run(), MainScreenWidget::setup(), and tdialogbox::~tdialogbox(). |
|
|
|
|
|
|
|
|
|
|
|
the view of the player onto the map changed, for example because he scrolled the map
Definition at line 49 of file spfst.cpp. Referenced by MapDisplayPG::centerOnField(), MapDisplayPG::eventMouseButtonDown(), execaction_pg(), execuseraction2(), OverviewMapPanel::OverviewMapPanel(), MapDisplayPG::scrollMap(), MapSwitcher::toggle(), and Weathercast::Weathercast(). |
1.4.2