annotate src/industrytype.h @ 14484:24501a41ea9a draft

(svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
author frosch <frosch@openttd.org>
date Sun, 07 Feb 2010 12:04:44 +0000
parents a899d4e5ee1a
children aaf7de90045e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
1 /* $Id$ */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
2
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
3 /*
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
4 * This file is part of OpenTTD.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
8 */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
9
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
10 /** @file industrytype.h Industry type specs. */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
11
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
12 #ifndef INDUSTRYTYPE_H
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
13 #define INDUSTRYTYPE_H
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
14
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
15 #include "economy_type.h"
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
16 #include "map_type.h"
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
17 #include "slope_type.h"
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
18 #include "industry_type.h"
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
19 #include "landscape_type.h"
14258
a899d4e5ee1a (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
rubidium <rubidium@openttd.org>
parents: 14021
diff changeset
20 #include "strings_type.h"
a899d4e5ee1a (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
rubidium <rubidium@openttd.org>
parents: 14021
diff changeset
21 #include "cargo_type.h"
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
22
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
23 enum {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
24 CLEAN_RANDOMSOUNDS, ///< Free the dynamically allocated sounds table
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
25 CLEAN_TILELSAYOUT, ///< Free the dynamically allocated tile layout structure
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
26 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
27
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
28 enum IndustryLifeType {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
29 INDUSTRYLIFE_BLACK_HOLE = 0, ///< Like power plants and banks
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
30 INDUSTRYLIFE_EXTRACTIVE = 1 << 0, ///< Like mines
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
31 INDUSTRYLIFE_ORGANIC = 1 << 1, ///< Like forests
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
32 INDUSTRYLIFE_PROCESSING = 1 << 2, ///< Like factories
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
33 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
34
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
35 /* Procedures that can be run to check whether an industry may
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
36 * build at location the given to the procedure */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
37 enum CheckProc {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
38 CHECK_NOTHING,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
39 CHECK_FOREST,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
40 CHECK_REFINERY,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
41 CHECK_FARM,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
42 CHECK_PLANTATION,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
43 CHECK_WATER,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
44 CHECK_LUMBERMILL,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
45 CHECK_BUBBLEGEN,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
46 CHECK_OIL_RIG,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
47 CHECK_END,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
48 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
49
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
50 /** How was the industry created */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
51 enum IndustryConstructionType {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
52 ICT_UNKNOWN, ///< in previous game version or without newindustries activated
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
53 ICT_NORMAL_GAMEPLAY, ///< either by user or random creation proccess
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
54 ICT_MAP_GENERATION, ///< during random map creation
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
55 ICT_SCENARIO_EDITOR ///< while scenarion edition
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
56 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
57
14484
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
58 /** Various industry behaviours mostly to represent original TTD specialities */
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
59 enum IndustryBehaviour {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
60 INDUSTRYBEH_NONE = 0,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
61 INDUSTRYBEH_PLANT_FIELDS = 1 << 0, ///< periodically plants fileds around itself (temp and artic farms)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
62 INDUSTRYBEH_CUT_TREES = 1 << 1, ///< cuts trees and produce first output cargo from them (lumber mill)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
63 INDUSTRYBEH_BUILT_ONWATER = 1 << 2, ///< is built on water (oil rig)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
64 INDUSTRYBEH_TOWN1200_MORE = 1 << 3, ///< can only be built in towns larger than 1200 inhabitants (temperate bank)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
65 INDUSTRYBEH_ONLY_INTOWN = 1 << 4, ///< can only be built in towns (arctic/tropic banks, water tower)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
66 INDUSTRYBEH_ONLY_NEARTOWN = 1 << 5, ///< is always built near towns (toy shop)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
67 INDUSTRYBEH_PLANT_ON_BUILT = 1 << 6, ///< Fields are planted around when built (all farms)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
68 INDUSTRYBEH_DONT_INCR_PROD = 1 << 7, ///< do not increase production (oil wells) in the temperate climate
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
69 INDUSTRYBEH_BEFORE_1950 = 1 << 8, ///< can only be built before 1950 (oil wells)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
70 INDUSTRYBEH_AFTER_1960 = 1 << 9, ///< can only be built after 1960 (oil rigs)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
71 INDUSTRYBEH_AI_AIRSHIP_ROUTES = 1 << 10, ///< ai will attempt to establish air/ship routes to this industry (oil rig)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
72 INDUSTRYBEH_AIRPLANE_ATTACKS = 1 << 11, ///< can be exploded by a military airplane (oil refinery)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
73 INDUSTRYBEH_CHOPPER_ATTACKS = 1 << 12, ///< can be exploded by a military helicopter (factory)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
74 INDUSTRYBEH_CAN_SUBSIDENCE = 1 << 13, ///< can cause a subsidence (coal mine, shaft that collapses)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
75 /* The following flags are only used for newindustries and do no represent any normal behaviour */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
76 INDUSTRYBEH_PROD_MULTI_HNDLING = 1 << 14, ///< Automatic production multiplier handling
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
77 INDUSTRYBEH_PRODCALLBACK_RANDOM = 1 << 15, ///< Production callback needs random bits in var 10
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
78 INDUSTRYBEH_NOBUILT_MAPCREATION = 1 << 16, ///< Do not force one instance of this type to appear on map generation
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
79 INDUSTRYBEH_CANCLOSE_LASTINSTANCE = 1 << 17, ///< Allow closing down the last instance of this type
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
80 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
81 DECLARE_ENUM_AS_BIT_SET(IndustryBehaviour);
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
82
14484
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
83 /** Flags for miscellaneous industry tile specialities */
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
84 enum IndustryTileSpecialFlags {
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
85 INDTILE_SPECIAL_NONE = 0,
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
86 INDTILE_SPECIAL_NEXTFRAME_RANDOMBITS = 1 << 0, ///< Callback 0x26 needs random bits
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
87 };
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
88 DECLARE_ENUM_AS_BIT_SET(IndustryTileSpecialFlags);
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
89
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
90 struct IndustryTileTable {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
91 TileIndexDiffC ti;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
92 IndustryGfx gfx;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
93 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
94
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
95 /** Data related to the handling of grf files. Common to both industry and industry tile */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
96 struct GRFFileProps {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
97 uint16 subst_id;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
98 uint16 local_id; ///< id defined by the grf file for this industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
99 struct SpriteGroup *spritegroup; ///< pointer to the different sprites of the industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
100 const struct GRFFile *grffile; ///< grf file that introduced this industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
101 uint16 override; ///< id of the entity been replaced by
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
102 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
103
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
104 /**
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
105 * Defines the data structure for constructing industry.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
106 */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
107 struct IndustrySpec {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
108 const IndustryTileTable * const *table;///< List of the tiles composing the industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
109 byte num_table; ///< Number of elements in the table
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
110 uint8 cost_multiplier; ///< Base construction cost multiplier.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
111 uint32 removal_cost_multiplier; ///< Base removal cost multiplier.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
112 uint32 prospecting_chance; ///< Chance prospecting succeeds
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
113 IndustryType conflicting[3]; ///< Industries this industry cannot be close to
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
114 byte check_proc; ///< Index to a procedure to check for conflicting circumstances
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
115 CargoID produced_cargo[2];
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
116 byte production_rate[2];
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
117 byte minimal_cargo; ///< minimum amount of cargo transported to the stations
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
118 ///< If the waiting cargo is less than this number, no cargo is moved to it
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
119 CargoID accepts_cargo[3]; ///< 3 accepted cargos
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
120 uint16 input_cargo_multiplier[3][2]; ///< Input cargo multipliers (multiply amount of incoming cargo for the produced cargos)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
121 IndustryLifeType life_type; ///< This is also known as Industry production flag, in newgrf specs
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
122 byte climate_availability; ///< Bitmask, giving landscape enums as bit position
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
123 IndustryBehaviour behaviour; ///< How this industry will behave, and how others entities can use it
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
124 byte map_colour; ///< colour used for the small map
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
125 StringID name; ///< Displayed name of the industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
126 StringID new_industry_text; ///< Message appearing when the industry is built
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
127 StringID closure_text; ///< Message appearing when the industry closes
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
128 StringID production_up_text; ///< Message appearing when the industry's production is increasing
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
129 StringID production_down_text; ///< Message appearing when the industry's production is decreasing
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
130 StringID station_name; ///< Default name for nearby station
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
131 byte appear_ingame[NUM_LANDSCAPE]; ///< Probability of appearance in game
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
132 byte appear_creation[NUM_LANDSCAPE]; ///< Probability of appearance during map creation
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
133 uint8 number_of_sounds; ///< Number of sounds available in the sounds array
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
134 const uint8 *random_sounds; ///< array of random sounds.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
135 /* Newgrf data */
13036
8e2a0e8fa275 (svn r17534) -Codechange: unify the naming of callback masks/flags
rubidium <rubidium@openttd.org>
parents: 12825
diff changeset
136 uint16 callback_mask; ///< Bitmask of industry callbacks that have to be called
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
137 uint8 cleanup_flag; ///< flags indicating which data should be freed upon cleaning up
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
138 bool enabled; ///< entity still avaible (by default true).newgrf can disable it, though
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
139 struct GRFFileProps grf_prop; ///< properties related the the grf file
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
140
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
141 /**
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
142 * Is an industry with the spec a raw industry?
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
143 * @return true if it should be handled as a raw industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
144 */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
145 bool IsRawIndustry() const;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
146
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
147 /**
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
148 * Get the cost for constructing this industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
149 * @return the cost (inflation corrected etc)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
150 */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
151 Money GetConstructionCost() const;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
152
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
153 /**
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
154 * Get the cost for removing this industry
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
155 * Take note that the cost will always be zero for non-grf industries.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
156 * Only if the grf author did specified a cost will it be applicable.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
157 * @return the cost (inflation corrected etc)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
158 */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
159 Money GetRemovalCost() const;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
160 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
161
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
162 /**
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
163 * Defines the data structure of each indivudual tile of an industry.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
164 */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
165 struct IndustryTileSpec {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
166 CargoID accepts_cargo[3]; ///< Cargo accepted by this tile
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
167 uint8 acceptance[3]; ///< Level of aceptance per cargo type
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
168 Slope slopes_refused; ///< slope pattern on which this tile cannot be built
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
169 byte anim_production; ///< Animation frame to start when goods are produced
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
170 byte anim_next; ///< Next frame in an animation
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
171 bool anim_state; ///< When true, the tile has to be drawn using the animation
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
172 ///< state instead of the construction state
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
173 /* Newgrf data */
13036
8e2a0e8fa275 (svn r17534) -Codechange: unify the naming of callback masks/flags
rubidium <rubidium@openttd.org>
parents: 12825
diff changeset
174 uint8 callback_mask; ///< Bitmask of industry tile callbacks that have to be called
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
175 uint16 animation_info; ///< Information about the animation (is it looping, how many loops etc)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
176 uint8 animation_speed; ///< The speed of the animation
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
177 uint8 animation_triggers; ///< When to start the animation
14484
24501a41ea9a (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
frosch <frosch@openttd.org>
parents: 14258
diff changeset
178 IndustryTileSpecialFlags special_flags; ///< Bitmask of extra flags used by the tile
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
179 bool enabled; ///< entity still avaible (by default true).newgrf can disable it, though
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
180 struct GRFFileProps grf_prop;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
181 };
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
182
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
183 /* industry_cmd.cpp*/
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
184 const IndustrySpec *GetIndustrySpec(IndustryType thistype); ///< Array of industries data
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
185 const IndustryTileSpec *GetIndustryTileSpec(IndustryGfx gfx); ///< Array of industry tiles data
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
186 void ResetIndustries();
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
187
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
188 /* writable arrays of specs */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
189 extern IndustrySpec _industry_specs[NUM_INDUSTRYTYPES];
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
190 extern IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES];
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
191
14021
53eee9df97d5 (svn r18563) -Document: some industry related functions
rubidium <rubidium@openttd.org>
parents: 13757
diff changeset
192 /**
53eee9df97d5 (svn r18563) -Document: some industry related functions
rubidium <rubidium@openttd.org>
parents: 13757
diff changeset
193 * Do industry gfx ID translation for NewGRFs.
53eee9df97d5 (svn r18563) -Document: some industry related functions
rubidium <rubidium@openttd.org>
parents: 13757
diff changeset
194 * @param gfx the type to get the override for.
53eee9df97d5 (svn r18563) -Document: some industry related functions
rubidium <rubidium@openttd.org>
parents: 13757
diff changeset
195 * @return the gfx to actually work with.
53eee9df97d5 (svn r18563) -Document: some industry related functions
rubidium <rubidium@openttd.org>
parents: 13757
diff changeset
196 */
12825
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
197 static inline IndustryGfx GetTranslatedIndustryTileID(IndustryGfx gfx)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
198 {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
199 /* the 0xFF should be GFX_WATERTILE_SPECIALCHECK but for reasons of include mess,
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
200 * we'll simplify the writing.
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
201 * Basically, the first test is required since the GFX_WATERTILE_SPECIALCHECK value
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
202 * will never be assigned as a tile index and is only required in order to do some
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
203 * tests while building the industry (as in WATER REQUIRED */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
204 if (gfx != 0xFF) {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
205 assert(gfx < INVALID_INDUSTRYTILE);
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
206 const IndustryTileSpec *it = &_industry_tile_specs[gfx];
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
207 return it->grf_prop.override == INVALID_INDUSTRYTILE ? gfx : it->grf_prop.override;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
208 } else {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
209 return gfx;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
210 }
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
211 }
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
212
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
213 extern uint16 _industry_counts[NUM_INDUSTRYTYPES]; // Number of industries per type ingame
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
214
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
215 /** Increment the count of industries for this type
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
216 * @param type IndustryType to increment
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
217 * @pre type < INVALID_INDUSTRYTYPE */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
218 static inline void IncIndustryTypeCount(IndustryType type)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
219 {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
220 assert(type < INVALID_INDUSTRYTYPE);
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
221 _industry_counts[type]++;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
222 }
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
223
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
224 /** Decrement the count of industries for this type
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
225 * @param type IndustryType to decrement
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
226 * @pre type < INVALID_INDUSTRYTYPE */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
227 static inline void DecIndustryTypeCount(IndustryType type)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
228 {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
229 assert(type < INVALID_INDUSTRYTYPE);
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
230 _industry_counts[type]--;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
231 }
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
232
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
233 /** get the count of industries for this type
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
234 * @param type IndustryType to query
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
235 * @pre type < INVALID_INDUSTRYTYPE */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
236 static inline uint8 GetIndustryTypeCount(IndustryType type)
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
237 {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
238 assert(type < INVALID_INDUSTRYTYPE);
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
239 return min(_industry_counts[type], 0xFF); // callback expects only a byte, so cut it
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
240 }
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
241
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
242 /** Resets both the total_industries and the _industry_counts
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
243 * This way, we centralize all counts activities */
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
244 static inline void ResetIndustryCounts()
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
245 {
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
246 memset(&_industry_counts, 0, sizeof(_industry_counts));
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
247 }
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
248
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
249 static const uint8 IT_INVALID = 255;
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
250
1bd6b38694ac (svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
diff changeset
251 #endif /* INDUSTRYTYPE_H */