(svn r9795) -Codechange: enumify the EngineClass.

This commit is contained in:
rubidium
2007-05-06 15:01:44 +00:00
parent abbaa1691e
commit 5c0a52149d
4 changed files with 21 additions and 15 deletions

View File

@@ -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;