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

ContainerConstControls Class Reference

#include <containercontrols.h>

Inheritance diagram for ContainerConstControls:

Inheritance graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

ContainerConstControls::ContainerConstControls const ContainerBase cb  )  [inline]
 

Definition at line 33 of file containercontrols.h.


Member Function Documentation

bool ContainerConstControls::unitProductionAvailable  )  const
 

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().

int ContainerConstControls::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 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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:16:56 2008 for Advanced Strategic Command by  doxygen 1.4.2