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

productionanalysis.cpp File Reference

#include "../containerbasetype.h"
#include "../vehicletype.h"
#include "../player.h"
#include "../gamemap.h"
#include "../itemrepository.h"
#include "productionanalysis.h"
#include "vehicletypeselector.h"
#include "../widgets/textrenderer.h"

Include dependency graph for productionanalysis.cpp:

Go to the source code of this file.

Functions

int evaluateProduction (const ContainerBaseType *potentialFactory, const Vehicletype *vt, GameMap *gamemap)
int evaluateProduction (const Vehicletype *potentialFactory, const Vehicletype *vt, GameMap *gamemap)
ASCString getProductionString (const ContainerBaseType *potentialFactory, const Vehicletype *vt, GameMap *gamemap)
ASCString getInstances (const ContainerBaseType *evaluatedFactory, const Vehicletype *unitsToProduce, GameMap *gamemap, bool lineAvail)
template<typename T>
void checkType (T *t, const Vehicletype *evaluatedUnitType, ASCString &instances, ASCString &lineAddable, ASCString &types, GameMap *gamemap, bool checkResearch)
bool vehicleOwned (const Vehicletype *vt, GameMap *gamemap)
void unitProductionAnalysis (GameMap *gamemap, bool checkResearch)


Function Documentation

template<typename T>
void checkType T *  t,
const Vehicletype evaluatedUnitType,
ASCString instances,
ASCString lineAddable,
ASCString types,
GameMap gamemap,
bool  checkResearch
 

Definition at line 138 of file productionanalysis.cpp.

References evaluateProduction(), GameMap::getCurrentPlayer(), getInstances(), and getProductionString().

Referenced by unitProductionAnalysis().

int evaluateProduction const Vehicletype potentialFactory,
const Vehicletype vt,
GameMap gamemap
 

Definition at line 56 of file productionanalysis.cpp.

References evaluateProduction(), and ContainerBaseType::id.

int evaluateProduction const ContainerBaseType potentialFactory,
const Vehicletype vt,
GameMap gamemap
 

Definition at line 48 of file productionanalysis.cpp.

References ContainerBaseType::hasFunction(), ContainerBaseType::InternalVehicleProduction, and ContainerBaseType::vehicleFit().

Referenced by checkType(), evaluateProduction(), and getProductionString().

ASCString getInstances const ContainerBaseType evaluatedFactory,
const Vehicletype unitsToProduce,
GameMap gamemap,
bool  lineAvail
 

Definition at line 86 of file productionanalysis.cpp.

References TechAdapterDependency::available(), GameMap::getCurrentPlayer(), and ContainerBaseType::techDependency.

Referenced by checkType().

ASCString getProductionString const ContainerBaseType potentialFactory,
const Vehicletype vt,
GameMap gamemap
 

Definition at line 69 of file productionanalysis.cpp.

References evaluateProduction(), ContainerBaseType::getName(), ContainerBaseType::id, and ASCString::toString().

Referenced by checkType().

void unitProductionAnalysis GameMap gamemap,
bool  checkResearch
 

Definition at line 157 of file productionanalysis.cpp.

References buildingTypeRepository, checkType(), AvailableUnitWindow::getSelected(), PG_Widget::Hide(), ItemSelectorWindow::RunModal(), ASC_PG_Dialog::RunModal(), PG_Widget::Show(), vehicleOwned(), and vehicleTypeRepository.

Referenced by execuseraction2().

bool vehicleOwned const Vehicletype vt,
GameMap gamemap
 

Definition at line 148 of file productionanalysis.cpp.

References GameMap::getCurrentPlayer().

Referenced by unitProductionAnalysis().


Generated on Tue Jun 24 02:05:50 2008 for Advanced Strategic Command by  doxygen 1.4.2