StatisticsCalculator Class Reference

#include <statistics.h>

List of all members.

Static Public Member Functions

static int unitCount (const ContainerBase *c, bool recurse)
static int unitCost (const ContainerBase *c, bool recurse)
static Resources resource (const ContainerBase *c, bool recurse)
static double strength (const ContainerBase *c, bool recurse)


Detailed Description

Definition at line 29 of file statistics.h.


Member Function Documentation

int StatisticsCalculator::unitCount ( const ContainerBase c,
bool  recurse 
) [static]

Definition at line 52 of file statistics.cpp.

References ContainerBase::getCargo().

int StatisticsCalculator::unitCost ( const ContainerBase c,
bool  recurse 
) [static]

Definition at line 77 of file statistics.cpp.

References ContainerBase::baseType, ContainerBase::getCargo(), Resources::material, and ContainerBaseType::productionCost.

Resources StatisticsCalculator::resource ( const ContainerBase c,
bool  recurse 
) [static]

Definition at line 63 of file statistics.cpp.

References ContainerBase::baseType, ContainerBase::getAvailableResource(), ContainerBase::getCargo(), maxint, ContainerBaseType::productionCost, and Resources::resource().

Referenced by getPlayerStrength().

double StatisticsCalculator::strength ( const ContainerBase c,
bool  recurse 
) [static]

Definition at line 32 of file statistics.cpp.

References ContainerBase::damage, Resources::energy, Vehicle::experience, ContainerBase::getCargo(), ContainerBase::getMap(), Resources::material, ContainerBaseType::productionCost, and Vehicle::typ.

Referenced by getPlayerStrength(), and showCargoSummary().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:36 2012 for Advanced Strategic Command by  doxygen 1.5.1