Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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.

Defines

#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)

Variables

const float repairEfficiencyBuilding [resourceTypeNum *resourceTypeNum]
const int buildingstreamversion = -5


Detailed Description

The buildings which a placed on the map.

Definition in file buildings.cpp.


Define Documentation

#define BUILDINGVERSIONLIMIT   -1000000000
 

Definition at line 37 of file buildings.cpp.

Referenced by Building::write().


Function Documentation

template<typename T>
T ASC_max a,
b
 

Definition at line 189 of file buildings.cpp.

Referenced by Building::getImage().

template<typename T>
T ASC_min a,
b
 

Definition at line 181 of file buildings.cpp.

Referenced by Building::getImage().

void doresearch GameMap actmap,
int  player
 

Definition at line 785 of file buildings.cpp.

References ResearchEfficiency::bld, Player::buildingList, ResearchEfficiency::eff, Resources::energy, fatalError(), Resources::fuel, Research::getMultiplier(), Building::getResource(), ContainerBaseType::hasFunction(), Resources::material, max(), maxint, GameMap::player, Research::progress, ContainerBaseType::Research, Player::research, ContainerBase::researchpoints, returnResourcenUseForResearch(), and Building::typ.

Referenced by GameMap::endRound().


Variable Documentation

const int buildingstreamversion = -5
 

Definition at line 446 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 41 of file buildings.cpp.


Generated on Tue Jun 24 01:36:57 2008 for Advanced Strategic Command by  doxygen 1.4.2