forked from mirror/OpenTTD
(svn r18413) -Doc: Added doxygen strings for cargo-type related enums, structs, and functions.
This commit is contained in:
@@ -20,10 +20,14 @@
|
||||
|
||||
CargoSpec CargoSpec::array[NUM_CARGO];
|
||||
|
||||
/* Bitmask of cargo types available */
|
||||
/** Bitmask of cargo types available.
|
||||
* Initialized during a call to #SetupCargoForClimate.
|
||||
*/
|
||||
uint32 _cargo_mask;
|
||||
|
||||
|
||||
/** Set up the default cargo types for the given landscape type.
|
||||
* @param l Landscape
|
||||
*/
|
||||
void SetupCargoForClimate(LandscapeID l)
|
||||
{
|
||||
assert(l < lengthof(_default_climate_cargo));
|
||||
@@ -60,7 +64,10 @@ void SetupCargoForClimate(LandscapeID l)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Get the cargo ID by cargo label.
|
||||
* @param cl Cargo type to get.
|
||||
* @return ID number if the cargo exists, else #CT_INVALID
|
||||
*/
|
||||
CargoID GetCargoIDByLabel(CargoLabel cl)
|
||||
{
|
||||
const CargoSpec *cs;
|
||||
@@ -75,7 +82,7 @@ CargoID GetCargoIDByLabel(CargoLabel cl)
|
||||
|
||||
/** Find the CargoID of a 'bitnum' value.
|
||||
* @param bitnum 'bitnum' to find.
|
||||
* @return First CargoID with the given bitnum, or CT_INVALID if not found.
|
||||
* @return First CargoID with the given bitnum, or #CT_INVALID if not found or if the provided \a bitnum is invalid.
|
||||
*/
|
||||
CargoID GetCargoIDByBitnum(uint8 bitnum)
|
||||
{
|
||||
|
Reference in New Issue
Block a user