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 | 425923c8d20f5295304a091bc23cc85dff63b0cf (patch) | |
tree | dcf6bc8598cc98dbb7b1444a65d5dcefeced2f1c /src/engine.h | |
parent | 9a893ebe20768fcb4d707738339249d40874575c (diff) | |
download | openttd-425923c8d20f5295304a091bc23cc85dff63b0cf.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; |