From 24c4d5b06d231785db01500360c26815d8fe4d15 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 7 Mar 2007 12:11:48 +0000 Subject: (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; --- src/industry.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/industry.h') diff --git a/src/industry.h b/src/industry.h index e634c27de..131b6d4f2 100644 --- a/src/industry.h +++ b/src/industry.h @@ -14,11 +14,11 @@ enum { INVALID_INDUSTRY = 0xFFFF, }; -typedef enum IndustryLifeTypes { +enum IndustryLifeType { INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production INDUSTRYLIFE_CLOSABLE, ///< Industry can only close (no production change) -} IndustryLifeType; +}; /** * Defines the internal data of a functionnal industry @@ -49,15 +49,15 @@ struct Industry { IndustryID index; ///< index of the industry in the pool of industries }; -typedef struct IndustryTileTable { +struct IndustryTileTable { TileIndexDiffC ti; IndustryGfx gfx; -} IndustryTileTable; +}; /** * Defines the data structure for constructing industry. */ -typedef struct IndustrySpec { +struct IndustrySpec { const IndustryTileTable *const *table;///< List of the tiles composing the industry byte num_table; ///< Number of elements in the table byte cost_multiplier; ///< Base cost multiplier*/ @@ -74,15 +74,15 @@ typedef struct IndustrySpec { StringID closure_text; ///< Message appearing when the industry closes StringID production_up_text; ///< Message appearing when the industry's production is increasing StringID production_down_text; ///< Message appearing when the industry's production is decreasing -} IndustrySpec; +}; /** * Defines the data structure of each indivudual tile of an industry. */ -typedef struct IndustryTileSpec { +struct IndustryTileSpec { CargoID accepts_cargo[3]; ///< Cargo accepted by this tile Slope slopes_refused; ///< slope pattern on which this tile cannot be built -} IndustryTileSpec; +}; const IndustrySpec *GetIndustrySpec(IndustryType thistype); ///< Array of industries default data const IndustryTileSpec *GetIndustryTileSpec(IndustryGfx gfx); ///< Array of industry tiles default data -- cgit v1.2.3-54-g00ecf