#include <algorithm>
#include <cmath>
#include "vehicletype.h"
#include "buildingtype.h"
#include "buildings.h"
#include "viewcalculation.h"
#include "errors.h"
#include "spfst.h"
#include "resourcenet.h"
#include "itemrepository.h"
#include "containercontrols.h"
#include "misc.h"
Include dependency graph for buildings.cpp:

Go to the source code of this file.
Classes | |
| struct | ResearchEfficiency |
Defines | |
| #define | BUILDINGVERSIONLIMIT -1000000000 |
Functions | |
| template<typename T> | |
| T | ASC_min (T a, T b) |
| template<typename T> | |
| T | ASC_max (T a, T b) |
| void | doresearch (GameMap *actmap, int player) |
| ASCString | getBuildingReference (Building *bld) |
Variables | |
| const float | repairEfficiencyBuilding [resourceTypeNum *resourceTypeNum] |
| const int | buildingstreamversion = -7 |
Definition in file buildings.cpp.
| #define BUILDINGVERSIONLIMIT -1000000000 |
| T ASC_max | ( | T | a, | |
| T | b | |||
| ) |
| T ASC_min | ( | T | a, | |
| T | b | |||
| ) |
| void doresearch | ( | GameMap * | actmap, | |
| int | player | |||
| ) |
Definition at line 799 of file buildings.cpp.
References Research::activetechnology, actmap, ResearchEfficiency::bld, Player::buildingList, ResearchEfficiency::eff, fatalError(), Research::getMultiplier(), GameMap::getPlayer(), max(), maxint, GameMap::player, Research::progress, Player::research, ContainerBaseType::Research, and returnResourcenUseForResearch().
Referenced by GameMap::endRound().
Definition at line 881 of file buildings.cpp.
References Building::getName(), Building::getPosition(), and MapCoordinate::toString().
Referenced by checkunitsforremoval().
| const int buildingstreamversion = -7 |
Definition at line 448 of file buildings.cpp.
| const float repairEfficiencyBuilding[resourceTypeNum *resourceTypeNum] |
Initial value:
{ 1./3., 0, 1. / 3. ,
0, 1./3., 0,
0, 0, 0 }
Definition at line 42 of file buildings.cpp.
1.5.1