#include "typen.h"#include "mapalgorithms.h"#include "gamemap.h"Include dependency graph for viewcalculation.h:

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

Go to the source code of this file.
Functions | |
| int | computeview (GameMap *gamemap, int player_fieldcount_mask=0, bool disableShareView=false) |
| completely computes the view | |
| int | evaluatevisibilityfield (GameMap *gamemap, tfield *fld, int player, int add, int initial) |
| evaluates the view on a given field and saves it for that field. | |
| int | evaluateviewcalculation (GameMap *gamemap, int player_fieldcount_mask=0, bool disableShareView=false) |
| evaluates the view on the whole map. | |
| int | evaluateviewcalculation (GameMap *gamemap, const MapCoordinate &pos, int distance, int player_fieldcount_mask=0, bool disableShareView=false) |
| evaluates the view on a part of the map. | |
| VisibilityStates | calcvisibilityfield (GameMap *gamemap, tfield *fld, int player, int add, int initial, int additionalEnemyJamming) |
| calculates the view on a given field. | |
| int | getPlayersWithSharedViewMask (int player, GameMap *gamemap) |
Variables | |
| SigC::Signal0< void > | buildingSeen |
|
||||||||||||||||||||||||||||
|
calculates the view on a given field. Radar and jamming values must have already been applied to the field!
Definition at line 244 of file viewcalculation.cpp. References tfield::building, BuildingType::buildingheight, chsatellit, chschwimmend, tfield::View::direct, ContainerBase::getOwner(), getPlayersWithSharedViewMask(), Vehicle::height, tfield::View::jamming, tfield::View::mine, tfield::mineowner(), tfield::mines, GameMap::player, tfield::View::satellite, tfield::View::sonar, Player::stat, Player::supervisor, Building::typ, tfield::vehicle, tfield::View::view, tfield::view, tfield::visible, visible_ago, visible_all, visible_not, and visible_now. Referenced by ReplayMapDisplay::displayMovingUnit(), and evaluatevisibilityfield(). |
|
||||||||||||||||
|
completely computes the view
Definition at line 387 of file viewcalculation.cpp. References Vehicle::addview(), clearvisibility(), evaluateviewcalculation(), and Vehicle::getPosition(). Referenced by benchgame(), continuenetworkgame(), destructbuildinglevel2(), diplomaticChange(), execaction_pg(), trunreplay::execnextreplaymove(), execuseraction(), execuseraction2(), SetViewSharing::execute(), GuiFunctions::BuildingConstruction::execute(), getVisibilityStatistics(), loadGame(), loadmap(), loadStartupMap(), putMine(), tgiveunitawaydlg::run(), trunreplay::run(), runai(), StartMultiplayerGame::start(), startnextcampaignmap(), and viewcomp(). |
|
||||||||||||||||||||||||
|
evaluates the view on a part of the map. Radar and jamming values must have already been applied to the field!
Definition at line 344 of file viewcalculation.cpp. References cgp_initialMapVisibility, Player::diplomacy, evaluatevisibilityfield(), Player::exist(), GameMap::getField(), GameMap::getgameparameter(), maxmalq, GameMap::player, DiplomaticStateVector::sharesView(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize. |
|
||||||||||||||||
|
evaluates the view on the whole map. Radar and jamming values must have already been applied to the field!
Definition at line 323 of file viewcalculation.cpp. References cgp_initialMapVisibility, evaluatevisibilityfield(), Player::exist(), GameMap::field, GameMap::getgameparameter(), getPlayersWithSharedViewMask(), GameMap::player, GameMap::xsize, and GameMap::ysize. |
|
||||||||||||||||||||||||
|
evaluates the view on a given field and saves it for that field. Calls calcvisibilityfield for the calculation Radar and jamming values must have already been applied to the field!
Definition at line 299 of file viewcalculation.cpp. References tfield::building, buildingSeen, calcvisibilityfield(), cconnection_seen, Building::connection, tfield::setVisibility(), tfield::visible, visible_ago, visible_all, and visible_now. Referenced by tsearchreactionfireingunits::checkfield(), evaluateviewcalculation(), and BaseVehicleMovement::moveunitxy(). |
|
||||||||||||
|
Definition at line 412 of file viewcalculation.cpp. References Player::diplomacy, Player::exist(), GameMap::player, and DiplomaticStateVector::sharesView(). Referenced by calcvisibilityfield(), and evaluateviewcalculation(). |
|
|
Definition at line 31 of file viewcalculation.cpp. Referenced by BuildingSeen::arm(), and evaluatevisibilityfield(). |
1.4.2