#include <time.h>#include <list>#include <bitset>#include <map>#include <SDL_types.h>#include "global.h"#include <limits.h>#include "basictypes.h"#include "basestrm.h"#include "messaginghub.h"Include dependency graph for typen.h:

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

Go to the source code of this file.
Defines | |
| #define | chtiefgetaucht 1 |
| #define | chgetaucht 2 |
| #define | chschwimmend 4 |
| #define | chfahrend 8 |
| #define | chtieffliegend 16 |
| #define | chfliegend 32 |
| #define | chhochfliegend 64 |
| #define | chsatellit 128 |
| #define | maxmalq 10 |
| Constants that specify the layout of ASC. | |
| #define | minmalq 10 |
| #define | fieldxsize 48 |
| #define | fieldysize 48 |
| #define | fielddistx 64 |
| #define | fielddisty 24 |
| #define | fielddisthalfx 32 |
| #define | fieldsizex fieldxsize |
| #define | fieldsizey fieldysize |
| #define | fieldsize (fieldxsize * fieldysize + 4 ) |
| #define | unitsizex 30 |
| #define | unitsizey 30 |
| #define | tanksize (( unitsizex+1 ) * ( unitsizey+1 ) + 4 ) |
| #define | unitsize tanksize |
| #define | maxint INT_MAX |
| #define | minint INT_MIN |
| #define | maxfloat FLT_MAX |
| #define | minfloat FLT_MIN |
| #define | movement_cost_for_repaired_unit 24 |
| #define | movement_cost_for_repairing_unit 12 |
| #define | attack_after_repair 1 |
| #define | mineputmovedecrease 10 |
| #define | mineremovemovedecrease 10 |
| #define | fusstruppenplattfahrgewichtsfaktor 2 |
| #define | mingebaeudeeroberungsbeschaedigung 80 |
| #define | lookintoenemytransports false |
| #define | lookintoenemybuildings false |
| #define | recyclingoutput 2 |
| #define | destructoutput 5 |
| #define | nowindplanefuelusage 1 |
| #define | generatortruckefficiency 2 |
| #define | mine_movemalus_increase 50 |
| #define | cnet_storeenergy 0x001 |
| #define | cnet_storematerial 0x002 |
| #define | cnet_storefuel 0x004 |
| #define | cnet_moveenergyout 0x008 |
| #define | cnet_movematerialout 0x010 |
| #define | cnet_movefuelout 0x020 |
| #define | cnet_stopenergyinput 0x040 |
| #define | cnet_stopmaterialinput 0x080 |
| #define | cnet_stopfuelinput 0x100 |
| #define | cnet_stopenergyoutput 0x200 |
| #define | cnet_stopmaterialoutput 0x400 |
| #define | cnet_stopfueloutput 0x800 |
| #define | resource_fuel_factor 80 |
| #define | resource_material_factor 80 |
| #define | destruct_building_material_get 2 |
| #define | destruct_building_fuel_usage 10 |
| #define | dissectunitresearchpointsplus 2 |
| #define | dissectunitresearchpointsplus2 3 |
Enumerations | |
| enum | { capeace, cawar, cawarannounce, capeaceproposal, canewsetwar1, canewsetwar2, canewpeaceproposal, capeace_with_shareview } |
| Structure field naming constants. More... | |
| enum | VisibilityStates { visible_not, visible_ago, visible_now, visible_all } |
Functions | |
| Resources | operator- (const Resources &res1, const Resources &res2) |
| Resources | operator+ (const Resources &res1, const Resources &res2) |
| Resources | operator * (const Resources &res1, float a) |
| Resources | operator/ (const Resources &res1, float a) |
| MapCoordinate | operator- (const MapCoordinate &a, const MapCoordinate &b) |
| MapCoordinate | operator+ (const MapCoordinate &a, const MapCoordinate &b) |
| vector< IntRange > | String2IntRangeVector (const ASCString &t) |
Variables | |
| const int | gamemapPixelSize = 4 |
| the color depth of the gamemap | |
| const int | playerNum = 9 |
| the number of players that ASC can manage. This includes the neutral semi-played, which can't do anything | |
| const int | waffenanzahl = 8 |
| The number of different weapon types. | |
| const int | cwettertypennum = 6 |
| The number of different weather. | |
| const int | cmovemalitypenum = 18 |
| The number of vehicle categories; Each category has its own move malus. | |
| const int | cmm_building = 11 |
| The movemalus type for a building. It is used for SingleWeapon::targetingAccuracy . | |
| const int | cmm_trooper = 7 |
| const int | choehenstufennum = 8 |
| The number of levels of height. | |
| const int | maxbuildingpicnum = 8 |
| The maximum number of number of different images for a building and a weather. For example, A wind power plant might have 6 different images, depending on the direction of the wind. | |
| const int | maxunitexperience = 23 |
| The maximum experience value of a Vehicle. | |
| const int | resourceTypeNum = 3 |
| The number of different resources that ASC uses. | |
| const int | resourceNum = resourceTypeNum |
| The number of different resources that ASC uses. | |
| const char * | cwettertypen [] |
| const char * | choehenstufen [8] |
| The different levels of height. | |
| const char * | resourceNames [3] |
| const char * | cmovemalitypes [cmovemalitypenum] |
| const char * | moveMaliTypeIcons [cmovemalitypenum] |
| const int | experienceDecreaseDamageBoundaryNum = 4 |
| const int | experienceDecreaseDamageBoundaries [experienceDecreaseDamageBoundaryNum] |
| when repairing a unit, the experience of the unit is decreased by one when passing each of these damage levels | |
| const int | sidenum = 6 |
| the number of sides that a field has; is now fixed at 6; | |
| const int | directionangle [sidenum] |
| const int | attackmovecost = 0 |
| The movement decrease in percent of the total movemnt that is used for attacking; only used for units that can move after attacking. | |
| const int | submarineMovement = 11 |
| the movemalus for all submerged units | |
| const int | maxwindspeed = 60 |
| const int | maxminingrange = 10 |
| The maximum number of fields a mining station can extract mineral resources from; Counted from its entry. | |
| const double | productionLineConstructionCostFactor = 0.5 |
| const double | productionLineRemovalCostFactor = 0.2 |
| const int | csolarkraftwerkleistung [] |
| const int | cnetcontrolnum = 12 |
| The number of netcontrol actions ; see cnetcontrol. | |
| const char * | cnetcontrol [cnetcontrolnum] |
| The actions that can be used to control a ResourceNet. | |
| const char * | cgeneralnetcontrol [] |
| const int | maxViewRange = 255 |
|
|
|
|
|
|
Definition at line 326 of file typen.h. Referenced by AStar3D::AStar3D(), Vehicletype::calcProductionsCost(), AStar3D::dist(), UnitHooveringLogic::getEndurance(), getwindheightforunit(), BaseVehicleMovement::moveunitxy(), and tcomputeview::testfield(). |
|
|
Definition at line 322 of file typen.h. Referenced by Mine::attacksunit(), Vehicletype::calcProductionsCost(), fieldAccessible(), ContainerBase::paintField(), and terrainaccessible2(). |
|
|
|
Definition at line 328 of file typen.h. Referenced by Vehicletype::calcProductionsCost(), calcvisibilityfield(), MapDisplayPG::displayAddons(), WeapDist::getWeaponStrength(), tcomputebuildingview::init(), tcomputevehicleview::init(), and stu_height(). |
|
|
Definition at line 323 of file typen.h. Referenced by Mine::attacksunit(), calcvisibilityfield(), PG_MapDisplay::displayMovingUnit(), MapDisplayPG::displayUnitMovement(), fieldAccessible(), fieldvisiblenow(), getmaxwindspeedforunit(), BuildingSeen::getState(), MapRenderer::paintSingleField(), stu_height(), and terrainaccessible2(). |
|
|
|
Definition at line 321 of file typen.h. Referenced by stu_height(), and terrainaccessible2(). |
|
|
Definition at line 444 of file typen.h. Referenced by Building::execnetcontrol(). |
|
|
|
|
|
|
|
|
Definition at line 448 of file typen.h. Referenced by GetResourceCapacity::checkbuilding(), PutTribute::checkbuilding(), PutResource::checkbuilding(), Building::convert(), destructbuildinglevel2(), Building::execnetcontrol(), and trunreplay::execnextreplaymove(). |
|
|
Definition at line 452 of file typen.h. Referenced by GetResource::checkbuilding(), and Building::execnetcontrol(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 440 of file typen.h. Referenced by Building::execnetcontrol(). |
|
|
|
|
|
|
|
|
Definition at line 461 of file typen.h. Referenced by GuiFunctions::DestructBuilding::available(), and getDestructionCost(). |
|
|
Definition at line 460 of file typen.h. Referenced by getDestructionCost(). |
|
|
Definition at line 430 of file typen.h. Referenced by ContainerControls::calcDestructionOutput(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 356 of file typen.h. Referenced by GuiFunctions::generate_gui_build_icon(), rotatepict(), and rotatepict_grw(). |
|
|
Definition at line 357 of file typen.h. Referenced by GuiFunctions::generate_gui_build_icon(), rotatepict(), rotatepict_grw(), MapDisplayPG::setNewZoom(), WholeMapRenderer::writePCX(), and WholeMapRenderer::writePNG(). |
|
|
|
|
|
Definition at line 436 of file typen.h. Referenced by Vehicle::endRound(). |
|
|
|
|
|
|
|
|
|
|
|
|
Constants that specify the layout of ASC.
Definition at line 354 of file typen.h. Referenced by CalculateThreat_VehicleType::calc_threat_vehicletype(), calcMoveMalus(), VehicleService::FieldSearch::checkVehicle2Vehicle(), evaluateviewcalculation(), trunreplay::execnextreplaymove(), GuiFunctions::ObjectBuildingGui::execute(), AStar3D::findPath(), tputmine::initpm(), VehicleService::FieldSearch::initrefuelling(), BaseVehicleMovement::moveunitxy(), WeaponRange::run(), ServiceTargetSearcher::startSearch(), and Vehicle::vehicleconstructable(). |
|
|
Definition at line 438 of file typen.h. Referenced by tfield::getmovemalus(). |
|
|
Definition at line 420 of file typen.h. Referenced by tputmine::initpm(), and putMine(). |
|
|
Definition at line 421 of file typen.h. Referenced by putMine(). |
|
|
|
|
|
Definition at line 424 of file typen.h. Referenced by ContainerBase::vehicleLoadable(). |
|
|
Definition at line 395 of file typen.h. Referenced by BuildingTypeBaseWidget::getBuildingHeight(), EditAiParam::init(), VehicleService::FieldSearch::initrefuelling(), and AddResources::setup(). |
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 429 of file typen.h. Referenced by ContainerControls::calcDestructionOutput(). |
|
|
Definition at line 457 of file typen.h. Referenced by MiningStation::testfield(), and GetMiningInfo::testfield(). |
|
|
Definition at line 458 of file typen.h. Referenced by MiningStation::testfield(), and GetMiningInfo::testfield(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Structure field naming constants.
|
|
|
|
|
||||||||||||
|
Definition at line 209 of file typen.cpp. References Resources::resource(), and resourceTypeNum. |
|
||||||||||||
|
Definition at line 196 of file typen.h. References MapCoordinate::x, and MapCoordinate::y. |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 191 of file typen.h. References MapCoordinate::x, and MapCoordinate::y. |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 217 of file typen.cpp. References Resources::resource(), and resourceTypeNum. |
|
|
Definition at line 286 of file typen.cpp. References atoi(), and StringSplit::getNextToken(). Referenced by IntRangeArrayProperty::operation_eq(). |
|
|
The movement decrease in percent of the total movemnt that is used for attacking; only used for units that can move after attacking.
Definition at line 411 of file typen.h. Referenced by Vehicle::postAttack(). |
|
|
|
|
|
The different levels of height.
Definition at line 39 of file typen.cpp. Referenced by AI::showFieldInformation(). |
|
|
The number of levels of height.
Definition at line 66 of file typen.h. Referenced by Vehicletype::HeightChangeMethod::runTextIO(), SingleWeapon::runTextIO(), Vehicletype::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), and BuildingType::runTextIO(). |
|
|
The movemalus type for a building. It is used for SingleWeapon::targetingAccuracy .
Definition at line 62 of file typen.h. Referenced by attackpossible(), tunitattacksobject::setup(), and tunitattacksbuilding::setup(). |
|
|
Definition at line 63 of file typen.h. Referenced by Mine::attacksunit(), and tmineattacksunit::setup(). |
|
|
The number of vehicle categories; Each category has its own move malus.
Definition at line 59 of file typen.h. Referenced by TerrainType::MoveMalus::MoveMalus(), Vehicletype::read(), SingleWeapon::runTextIO(), Vehicletype::runTextIO(), TerrainType::Weather::runTextIO(), ObjectType::FieldModification::runTextIO(), ContainerBaseType::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), tfield::setparams(), WeaponInfoPanel::showWeapon(), SingleWeapon::SingleWeapon(), CargoDialog::userHandler(), viewterraininfo(), and Vehicletype::write(). |
|
|
Definition at line 43 of file typen.cpp. Referenced by UnitInfoDialog::UnitInfoDialog(), CargoDialog::userHandler(), and viewterraininfo(). |
|
|
The actions that can be used to control a ResourceNet.
|
|
|
The number of netcontrol actions ; see cnetcontrol.
|
|
|
Definition at line 90 of file typen.cpp. Referenced by SolarPowerplant::getPlus(). |
|
|
Definition at line 78 of file typen.cpp. Referenced by AddWeatherAreaDialog::AddWeatherAreaDialog(), chooseWeather(), WeatherAreaInformation::getInformation(), Maped_MainScreenWidget::Maped_MainScreenWidget(), viewterraininfo(), and WeatherDialog::WeatherDialog(). |
|
|
|
Definition at line 84 of file typen.cpp. Referenced by UnitPropertyEditor::init(), and ContainerBase::paintField(). |