Advanced Strategic Command
Classes | Functions
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.

Classes

class  AvailableUnitWindow
 

Functions

bool factoryProductionInstanceExists (const ContainerBaseType *potentialFactory, const VehicleType *vt, GameMap *gamemap)
 
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 
)
int evaluateProduction ( const ContainerBaseType potentialFactory,
const VehicleType vt,
GameMap gamemap 
)
int evaluateProduction ( const VehicleType potentialFactory,
const VehicleType vt,
GameMap gamemap 
)
bool factoryProductionInstanceExists ( const ContainerBaseType potentialFactory,
const VehicleType vt,
GameMap gamemap 
)
ASCString getInstances ( const ContainerBaseType evaluatedFactory,
const VehicleType unitsToProduce,
GameMap gamemap,
bool  lineAvail 
)
ASCString getProductionString ( const ContainerBaseType potentialFactory,
const VehicleType vt,
GameMap gamemap 
)
void unitProductionAnalysis ( GameMap gamemap,
bool  checkResearch 
)
bool vehicleOwned ( const VehicleType vt,
GameMap gamemap 
)

Definition at line 170 of file productionanalysis.cpp.

References GameMap::getCurrentPlayer(), and Player::vehicleList.

Referenced by unitProductionAnalysis().