Mercurial > hg > openttd
annotate src/industry_type.h @ 13419:ddfb6a69b9c3 draft
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 31 Oct 2009 19:46:51 +0000 |
parents | 1bd6b38694ac |
children | 43a5d37b45c4 |
rev | line source |
---|---|
8213
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
2 |
12778
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
diff
changeset
|
3 /* |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
diff
changeset
|
4 * This file is part of OpenTTD. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
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. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
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. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
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/>. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
diff
changeset
|
8 */ |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
8213
diff
changeset
|
9 |
8213
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
10 /** @file industry_type.h Types related to the industry. */ |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
11 |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
12 #ifndef INDUSTRY_TYPE_H |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
13 #define INDUSTRY_TYPE_H |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
14 |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
15 typedef uint16 IndustryID; |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
16 typedef uint16 IndustryGfx; |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
17 typedef uint8 IndustryType; |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
18 struct Industry; |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
19 |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
20 struct IndustrySpec; |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
21 struct IndustryTileSpec; |
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
22 |
12825
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
23 static const IndustryID INVALID_INDUSTRY = 0xFFFF; |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
24 |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
25 enum { |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
26 NEW_INDUSTRYOFFSET = 37, ///< original number of industries |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
27 NUM_INDUSTRYTYPES = 64, ///< total number of industries, new and old |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
28 INDUSTRYTILE_NOANIM = 0xFF, ///< flag to mark industry tiles as having no animation |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
29 NEW_INDUSTRYTILEOFFSET = 175, ///< original number of tiles |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
30 INVALID_INDUSTRYTYPE = NUM_INDUSTRYTYPES, ///< one above amount is considered invalid |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
31 NUM_INDUSTRYTILES = 512, ///< total number of industry tiles, new and old |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
32 INVALID_INDUSTRYTILE = NUM_INDUSTRYTILES, ///< one above amount is considered invalid |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
33 INDUSTRY_COMPLETED = 3, ///< final stage of industry construction. |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
34 }; |
1bd6b38694ac
(svn r17315) -Codechange: move code related to industry types to separate file
smatz <smatz@openttd.org>
parents:
12778
diff
changeset
|
35 |
8213
87c85bb42d6f
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
36 #endif /* INDUSTRY_TYPE_H */ |