#include <stdio.h>#include <cstring>#include <math.h>#include <stdarg.h>#include <ctime>#include "buildingtype.h"#include "vehicletype.h"#include "typen.h"#include "newfont.h"#include "spfst.h"#include "loaders.h"#include "misc.h"#include "controls.h"#include "stack.h"#include "dlg_box.h"#include "dialog.h"#include "attack.h"#include "gamedlg.h"#include "gameoptions.h"#include "ai/ai.h"#include "errors.h"#include "viewcalculation.h"#include "replay.h"#include "resourcenet.h"#include "itemrepository.h"#include "strtmesg.h"#include "messagedlg.h"#include "gameevent_dialogs.h"#include "cannedmessages.h"#include "mapdisplay.h"#include "dialogs/choosetech.h"Include dependency graph for controls.cpp:

Go to the source code of this file.
Functions | |
| void | destructbuildinglevel1 (int xp, int yp) |
| An old procedure for removing a building with a vehicle. | |
| Resources | getDestructionCost (Building *bld, Vehicle *veh) |
| void | destructbuildinglevel2 (int xp, int yp) |
| An old procedure for removing a building with a vehicle. | |
| void | putMine (const MapCoordinate &pos, int typ, int delta) |
| An old procedure for putting and removing mines. | |
| int | windbeeline (const MapCoordinate &start, const MapCoordinate &dest, WindMovement *wm) |
| return the distance between x1/y1 and x2/y2 using the power of the wind factors precalculated in WindMovement | |
| pair< int, int > | calcMoveMalus (const MapCoordinate3D &start, const MapCoordinate3D &dest, const Vehicle *vehicle, WindMovement *wm, bool *inhibitAttack, bool container2container) |
| void | setupNextTech (Player &player) |
| bool | anyTechAvailable (const Player &player) |
| void | researchCheck (Player &player) |
| checks if a new technology must be chosen by the current player. Runs the appropriate dialogs | |
Variables | |
| tmoveparams | moveparams |
| see tmoveparams | |
Definition in file controls.cpp.
|
|
Definition at line 640 of file controls.cpp. References Available, Player::research, Research::techAvailable(), and technologyRepository. Referenced by researchCheck(). |
|
||||||||||||||||||||||||||||
|
calculates the movement cost for moving vehicle from start to dest.
Definition at line 420 of file controls.cpp. References actmap, attackpossible28(), beeline(), tfield::building, Vehicletype::HeightChangeMethod::canAttack, Vehicletype::HeightChangeMethod::dist, fatalError(), MapCoordinate3D::getBitmappedHeight(), getdirection(), WindMovement::getDist(), Vehicle::getHeightChange(), ContainerBase::getMap(), tfield::getmovemalus(), getnextfield(), MapCoordinate3D::getNumericalHeight(), ContainerBase::getOwner(), max(), maxmalq, Vehicletype::HeightChangeMethod::moveCost, sidenum, submarineMovement, Vehicle::typ, tfield::vehicle, GameMap::weather, GameMap::Weather::windSpeed, MapCoordinate::x, and MapCoordinate::y. Referenced by AStar3D::getMoveCost(), AStar::getMoveCost(), and BaseVehicleMovement::moveunitxy(). |
|
||||||||||||
|
An old procedure for removing a building with a vehicle.
Definition at line 173 of file controls.cpp. References actmap, and tsearchdestructbuildingfields::initdestructbuilding(). Referenced by GuiFunctions::DestructBuilding::execute(). |
|
||||||||||||
|
An old procedure for removing a building with a vehicle.
Definition at line 187 of file controls.cpp. References tfield::a, actmap, Building::actstorage, Vehicle::attacked, tfield::building, GameMap::cleartemps(), cnet_stopenergyinput, computeview(), displaymap(), Resources::energy, Resources::fuel, Building::getCompletion(), getDestructionCost(), getfield(), Vehicle::getResource(), logtoreplayinfo(), Resources::material, tmoveparams::movestatus, Building::netcontrol, Vehicle::networkid, Building::putResource(), rpl_removebuilding3, Building::setCompletion(), Vehicle::setMovement(), and tmoveparams::vehicletomove. Referenced by GuiFunctions::DestructBuilding::execute(). |
|
||||||||||||
|
Definition at line 179 of file controls.cpp. References destruct_building_fuel_usage, destruct_building_material_get, Resources::fuel, Vehicletype::fuelConsumption, Resources::material, and Vehicle::typ. Referenced by destructbuildinglevel2(), and trunreplay::execnextreplaymove(). |
|
||||||||||||||||
|
|
checks if a new technology must be chosen by the current player. Runs the appropriate dialogs
Definition at line 655 of file controls.cpp. References Research::activetechnology, Research::addtechnology(), anyTechAvailable(), Research::developedTechnologies, NewVehicleTypeDetection::evalbuffer(), Technology::id, logtoreplayinfo(), Research::progress, Technology::researchpoints, rpl_techResearched, setupNextTech(), and showtechnology(). Referenced by hookGuiToMap(). |
|
|
Definition at line 622 of file controls.cpp. References chooseTechnology(). Referenced by researchCheck(). |
|
||||||||||||||||
|
return the distance between x1/y1 and x2/y2 using the power of the wind factors precalculated in WindMovement
Definition at line 394 of file controls.cpp. References getdirection(), WindMovement::getDist(), getnextfield(), minmalq, MapCoordinate::x, and MapCoordinate::y. Referenced by AStar3D::dist(). |
|
1.4.2