diff options
author | rubidium <rubidium@openttd.org> | 2007-05-06 15:01:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-06 15:01:44 +0000 |
commit | 5c0a52149d5124b6c68d698dba4807b832339cf2 (patch) | |
tree | dcf6bc8598cc98dbb7b1444a65d5dcefeced2f1c /src/engine.h | |
parent | abbaa1691e1900870740b5878dd95b5bef7a0cf0 (diff) | |
download | openttd-5c0a52149d5124b6c68d698dba4807b832339cf2.tar.xz |
(svn r9795) -Codechange: enumify the EngineClass.
Diffstat (limited to 'src/engine.h')
-rw-r--r-- | src/engine.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine.h b/src/engine.h index 54920e135..7f0d14875 100644 --- a/src/engine.h +++ b/src/engine.h @@ -16,6 +16,12 @@ enum RailVehicleTypes { RAILVEH_WAGON, ///< simple wagon, not motorized }; +enum EngineClass { + EC_STEAM, + EC_DIESEL, + EC_ELECTRIC, +}; + struct RailVehicleInfo { byte image_index; RailVehicleTypes railveh_type; @@ -26,7 +32,7 @@ struct RailVehicleInfo { uint16 weight; byte running_cost_base; byte running_cost_class; - byte engclass; ///< 0: steam, 1: diesel, 2: electric + EngineClass engclass; ///< Class of engine for this vehicle byte capacity; CargoID cargo_type; byte ai_rank; |