summaryrefslogtreecommitdiff
path: root/engine.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-19 20:45:47 +0000
committercelestar <celestar@openttd.org>2005-07-19 20:45:47 +0000
commit448467a9a193c5d1763ed7c1ad946f47bdc780be (patch)
treeed7d1ce506c8713801c2161f43249665cd2e9cfd /engine.h
parent99c17f8ac7bb12874739baacdfce9e82c956fe75 (diff)
downloadopenttd-448467a9a193c5d1763ed7c1ad946f47bdc780be.tar.xz
(svn r2639) -Add: Added the vehicle names in table/engines.h so that you know what line represents what vehicle (I hope I didn't mess that up). Added some comments while I'm at it and include the table/ directory in the Doxygen generation
Diffstat (limited to 'engine.h')
-rw-r--r--engine.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engine.h b/engine.h
index 616f5344d..aac050f49 100644
--- a/engine.h
+++ b/engine.h
@@ -1,6 +1,9 @@
#ifndef ENGINE_H
#define ENGINE_H
+/** @file engine.h
+ */
+
#include "sprite.h"
typedef struct RailVehicleInfo {
@@ -57,12 +60,15 @@ typedef struct RoadVehicleInfo {
byte cargo_type;
} RoadVehicleInfo;
+/** Information about a vehicle
+ * @see table/engines.h
+ */
typedef struct EngineInfo {
uint16 base_intro;
- byte unk2;
+ byte unk2; ///< Carriages have the highest bit set in this one
byte lifelength;
byte base_life;
- byte railtype_climates;
+ byte railtype_climates; ///< contains the railtype in the lower four bits, and a mask to the climates where the vehicle is available in the upper four
} EngineInfo;
typedef struct Engine {