#include <containercontrols.h>
Inheritance diagram for ContainerConstControls:

Public Member Functions | |
| ContainerConstControls (const ContainerBase *cb) | |
| bool | unitProductionAvailable () const |
| int | unitProductionPrerequisites (const Vehicletype *type) const |
| returns 0 if the unit is producable and != 0 otherwise. THe bits in the result say why the unit is not producable | |
|
|
Definition at line 33 of file containercontrols.h. |
|
|
Definition at line 54 of file containercontrols.cpp. References ContainerBase::baseType, ContainerBase::getMap(), ContainerBase::getOwner(), ContainerBaseType::hasFunction(), ContainerBaseType::InternalVehicleProduction, ContainerBaseType::maxLoadableUnits, and ContainerBase::vehiclesLoaded(). Referenced by ContainerControls::produceUnit(), and ContainerControls::produceUnitHypothetically(). |
|
|
returns 0 if the unit is producable and != 0 otherwise. THe bits in the result say why the unit is not producable
Definition at line 64 of file containercontrols.cpp. References ContainerBase::baseType, cgp_produceOnlyResearchedStuffInternally, ContainerBase::getAvailableResource(), ContainerBase::getProductionCost(), ContainerBaseType::hasFunction(), ContainerBaseType::ProduceNonLeavableUnits, Resources::resource(), resourceTypeNum, and ContainerBase::vehicleUnloadable(). Referenced by ContainerControls::produceUnit(), and ContainerControls::produceUnitHypothetically(). |
1.4.2