* Accessor for array _industry_specs. * This will ensure at once : proper access and * not allowing modifications of it. * @param thistype of industry (which is the index in _industry_specs) * @pre thistype < NUM_INDUSTRYTYPES * @return a pointer to the corresponding industry spec */
| 124 | * @return a pointer to the corresponding industry spec |
| 125 | */ |
| 126 | const IndustrySpec *GetIndustrySpec(IndustryType thistype) |
| 127 | { |
| 128 | assert(thistype < NUM_INDUSTRYTYPES); |
| 129 | return &_industry_specs[thistype]; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Accessor for array _industry_tile_specs. |
no outgoing calls
no test coverage detected