#include <statistics.h>
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) |
Definition at line 29 of file statistics.h.
| int StatisticsCalculator::unitCount | ( | const ContainerBase * | c, | |
| bool | recurse | |||
| ) | [static] |
| 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().
1.5.1