Advanced Strategic Command
Classes | Macros | Functions | Variables
buildings.cpp File Reference

The buildings which a placed on the map. More...

#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
 

Macros

#define BUILDINGVERSIONLIMIT   -1000000000
 

Functions

template<typename T >
ASC_min (T a, T b)
 
template<typename 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
 

Detailed Description

The buildings which a placed on the map.

Definition in file buildings.cpp.

Macro Definition Documentation

#define BUILDINGVERSIONLIMIT   -1000000000

Definition at line 38 of file buildings.cpp.

Referenced by Building::write().

Function Documentation

template<typename T >
T ASC_max ( a,
b 
)

Definition at line 219 of file buildings.cpp.

Referenced by Building::getImage().

template<typename T >
T ASC_min ( a,
b 
)

Definition at line 211 of file buildings.cpp.

Referenced by Building::getImage().

void doresearch ( GameMap actmap,
int  player 
)
ASCString getBuildingReference ( Building bld)

Variable Documentation

const int buildingstreamversion = -7

Definition at line 448 of file buildings.cpp.

Referenced by Building::newFromStream().

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.