summaryrefslogtreecommitdiff
path: root/src/newgrf_cargo.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-06 20:36:46 +0000
committerrubidium <rubidium@openttd.org>2007-12-06 20:36:46 +0000
commit3d38b2c8ba74410390ef12d38bd8013dcc00f4fa (patch)
treef6bf4403062d85fa5fa558058b46b3586468c6f9 /src/newgrf_cargo.h
parent2c3c6593d46ece432725580f19153422d0c9d668 (diff)
downloadopenttd-3d38b2c8ba74410390ef12d38bd8013dcc00f4fa.tar.xz
(svn r11581) -Codechange: add some missing cargo classes and some documentation.
Diffstat (limited to 'src/newgrf_cargo.h')
-rw-r--r--src/newgrf_cargo.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/newgrf_cargo.h b/src/newgrf_cargo.h
index 25cc59e14..b28512ed0 100644
--- a/src/newgrf_cargo.h
+++ b/src/newgrf_cargo.h
@@ -8,15 +8,18 @@
#include "newgrf_callbacks.h"
enum {
- CC_NOAVAILABLE = 0,
- CC_PASSENGERS = 1 << 0,
- CC_MAIL = 1 << 1,
- CC_EXPRESS = 1 << 2,
- CC_ARMOURED = 1 << 3,
- CC_BULK = 1 << 4,
- CC_PIECE_GOODS = 1 << 5,
- CC_LIQUID = 1 << 6,
- CC_REFRIGERATED = 1 << 7,
+ CC_NOAVAILABLE = 0, ///< No cargo class has been specified
+ CC_PASSENGERS = 1 << 0, ///< Passengers
+ CC_MAIL = 1 << 1, ///< Mail
+ CC_EXPRESS = 1 << 2, ///< Express cargo (Goods, Food, Candy, but also possible for passengers)
+ CC_ARMOURED = 1 << 3, ///< Armoured cargo (Valuables, Gold, Diamonds)
+ CC_BULK = 1 << 4, ///< Bulk cargo (Coal, Grain etc., Ores, Fruit)
+ CC_PIECE_GOODS = 1 << 5, ///< Piece goods (Livestock, Wood, Steel, Paper)
+ CC_LIQUID = 1 << 6, ///< Liquids (Oil, Water, Rubber)
+ CC_REFRIGERATED = 1 << 7, ///< Refrigerated cargo (Food, Fruit)
+ CC_HAZARDOUS = 1 << 8, ///< Hazardous cargo (Nucleair Fuel, Explosives, etc.)
+ CC_COVERED = 1 << 9, ///< Covered/Sheltered Freight (Transporation in Box Vans, Silo Wagons, etc.)
+ CC_SPECIAL = 1 << 15 ///< Special bit used for livery refit tricks instead of normal cargoes.
};
static const CargoID CT_DEFAULT = NUM_CARGO + 0;