Advanced Strategic Command
Functions | Variables
research.cpp File Reference
#include <cmath>
#include <iostream>
#include "research.h"
#include "errors.h"
#include "typen.h"
#include "vehicletype.h"
#include "gamemap.h"
#include "itemrepository.h"
Include dependency graph for research.cpp:

Go to the source code of this file.


ASCString generateTechName (const Technology *tech)
ASCString generateTechLabel (const Technology *tech)
Resources returnResourcenUseForResearch (const ContainerBase *bld, int research)
 Calculates the resources that are needed to research the given number of research. More...
Resources returnResourcenUseForResearch (const ContainerBase *bld)


const int techDependencyVersion = 2
const int technologyVersion = 4
const int researchableWeaponImprovements = 8
const int researchVersion = -5

Function Documentation

ASCString generateTechLabel ( const Technology tech)
ASCString generateTechName ( const Technology tech)

Definition at line 213 of file research.cpp.

References Technology::id, Technology::name, and strrr().

Referenced by generateTechLabel(), and TechDependency::writeInvertTreeOutput().

Resources returnResourcenUseForResearch ( const ContainerBase bld,
int  research 
Resources returnResourcenUseForResearch ( const ContainerBase bld)

Definition at line 966 of file research.cpp.

References ContainerBase::researchpoints, and returnResourcenUseForResearch().

Variable Documentation

const int researchableWeaponImprovements = 8

Definition at line 629 of file research.cpp.

Referenced by Research::read_struct().

const int researchVersion = -5

Definition at line 632 of file research.cpp.

Referenced by Research::read_struct().

const int techDependencyVersion = 2

Definition at line 31 of file research.cpp.

Referenced by TechDependency::read(), and TechDependency::write().

const int technologyVersion = 4

Definition at line 509 of file research.cpp.

Referenced by Technology::read().