18 #ifndef containerbasetypeH
19 #define containerbasetypeH
ASCString infoImageSmallFilename
A mathematical matrix for transforming Resources instance (which is mathematically a vector) into a d...
static const char * getFunctionName(ContainerFunctions function)
int defaultMaxResearchpoints
when a building of this type is placed on a map, its maxResearch property will be set to this value ...
int maxLoadableUnits
the maximum number of units that can be loaded
virtual int getMoveMalusType() const =0
void write(tnstream &stream) const
TechAdapterDependency techDependency
vector< IntRange > objectGroupsHarvestable
the group-ids of objects this unit can construct
ResourceMatrix productionEfficiency
void runTextIO(PropertyContainer &pc)
registers the properties of this item for loading/writing into asctxt files
bool hasFunction(ContainerFunctions function) const
vector< int > secondaryIDs
when loading a file and these IDs are encountered, this object will be used.
struct ContainerBaseType::@5 autoHarvest
bool vehicleFit(const VehicleType *type) const
can units of the given type be moved into this buildtype? This is a prerequisite - but not the only r...
static const int functionNum
The interface for all kinds of IO stream.
void runTextIO(PropertyContainer &pc)
vector< IntRange > objectsHarvestable
the ids of objects this unit can construct
The ASCString class provides an abstract way to manipulate strings.
ASCString description
short description of the units role, for example "strategic bomber"
int vehicleCategoriesStorable
bitmapped: vehicle categories that can be stored the container
vector< IntRange > vehiclesInternallyProduceable
the default production capabilities of this container.
int view
the visibility range
int maxLoadableUnitSize
the maximum size of a unit that may enter the building
void setFunction(ContainerFunctions function)
The class describing properties that are common to all vehicles of a certain kind.
vector< TransportationIO > EntranceSystems
int vehicleCategoriesProduceable
bitmapped: vehicle categories that can be produced in the container
The base class for everything that can be placed on a map field.
int height_rel
a height of a loadable unit have this height relative to the container; -100 if not used ...
int vehicleUnloadable(const VehicleType *vehicleType, int carrierHeight) const
checks the unloading of a unit type
bool hasAnyFunction(std::bitset< 64 > functions) const
An abstract base class that provides the interface for all kinds of items that ASC loads from disk...
std::bitset< 64 > features
int jamming
the radar jamming power
ASCString infoImageFilename
the filename of an image that is shown in info dialogs
EntranceSystems entranceSystems
int efficiencymaterial
currently only used by mining stations: the efficiency of the resource extraction from the ground...
static const int entranceModeNum
int vehicleCategoriesLoadable
bitmapped: vehicle categories that may enter the container
Resources getStorageCapacity(int mode) const
returns the Storage capacity of the unit
int height
the levels of height which this unit can enter
int nominalresearchpoints
the number of reseach points for which the plus settings apllies
std::bitset< 64 > requiresUnitFeature
Mine and Objects which can be placed on a map field.
int height_abs
a loadable unit must be on this level of height; 0 if not used
ASCString getName() const
int maxresearchpoints
the maximum number of research points a research center may produce
ASCString infotext
an extensive information about the unit/building which may be several paragraphs long ...
Resources are basically the currency of ASC.
int minFieldRepairDamage
if the unit is repaired in the field (that is, not inside a transport or building), it can only be repaired up to this level 0 would result in a complete repair being possible, 20 that it can only be restored to 20% damage (80% health).
int maxLoadableWeight
the maximum total weight of all loaded units
Everything related to research.
void read(tnstream &stream)
Resources defaultProduction
if a new building is constructed, this will be the resource production of the building ...
ASCString name
a short name, for example B-52
void write(tnstream &stream) const
write the binary representation of this item to the given stream
void read(tnstream &stream)
read the binary representation of this item from the given stream
virtual ~ContainerBaseType()
int container_height
the container must be on this height
int efficiencyfuel
currently only used by mining stations: the efficiency of the resource extraction from the ground...