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

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.

Functions

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.
Resources returnResourcenUseForResearch (const ContainerBase *bld)

Variables

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


Function Documentation

ASCString generateTechLabel const Technology tech  ) 
 

Definition at line 226 of file research.cpp.

References generateTechName(), Technology::name, Technology::researchpoints, s2, and strrr().

Referenced by TechDependency::writeInvertTreeOutput().

ASCString generateTechName const Technology tech  ) 
 

Definition at line 215 of file research.cpp.

References strrr().

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

Resources returnResourcenUseForResearch const ContainerBase bld  ) 
 

Definition at line 971 of file research.cpp.

References returnResourcenUseForResearch().

Resources returnResourcenUseForResearch const ContainerBase bld,
int  research
 

Calculates the resources that are needed to research the given number of research.

Definition at line 942 of file research.cpp.

Referenced by doresearch(), ResearchGraph::getPoint(), ContainerBase::getResourceUsage(), ResearchGraph::ResearchGraph(), returnResourcenUseForResearch(), ResearchGraph::setResearch(), and ResearchWindow::update().


Variable Documentation

const int researchableWeaponImprovements = 8
 

Definition at line 631 of file research.cpp.

const int researchVersion = -5
 

Definition at line 634 of file research.cpp.

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 511 of file research.cpp.


Generated on Tue Jun 24 02:06:56 2008 for Advanced Strategic Command by  doxygen 1.4.2