Fix #8316: Make sort industries by production and transported with a cargo filter...
[openttd-github.git] / src / table / roadtypes.h
blobd11573d63231d53a03de5477e3814a139d402d9f
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
8 /**
9 * @file roadtypes.h
10 * All the roadtype-specific information is stored here.
13 #ifndef ROADTYPES_H
14 #define ROADTYPES_H
16 /**
17 * Global Roadtype definition
19 static const RoadTypeInfo _original_roadtypes[] = {
20 /* Road */
22 /* GUI sprites */
24 SPR_IMG_ROAD_X_DIR,
25 SPR_IMG_ROAD_Y_DIR,
26 SPR_IMG_AUTOROAD,
27 SPR_IMG_ROAD_DEPOT,
28 SPR_IMG_ROAD_TUNNEL,
29 SPR_IMG_CONVERT_ROAD,
33 SPR_CURSOR_ROAD_NESW,
34 SPR_CURSOR_ROAD_NWSE,
35 SPR_CURSOR_AUTOROAD,
36 SPR_CURSOR_ROAD_DEPOT,
37 SPR_CURSOR_ROAD_TUNNEL,
38 SPR_CURSOR_CONVERT_ROAD,
41 /* strings */
43 STR_ROAD_NAME_ROAD,
44 STR_ROAD_TOOLBAR_ROAD_CONSTRUCTION_CAPTION,
45 STR_ROAD_MENU_ROAD_CONSTRUCTION,
46 STR_BUY_VEHICLE_ROAD_VEHICLE_CAPTION,
47 STR_REPLACE_ROAD_VEHICLES,
48 STR_ENGINE_PREVIEW_ROAD_VEHICLE,
50 STR_ERROR_CAN_T_BUILD_ROAD_HERE,
51 STR_ERROR_CAN_T_REMOVE_ROAD_FROM,
52 STR_ERROR_CAN_T_BUILD_ROAD_DEPOT,
53 { STR_ERROR_CAN_T_BUILD_BUS_STATION, STR_ERROR_CAN_T_BUILD_TRUCK_STATION },
54 { STR_ERROR_CAN_T_REMOVE_BUS_STATION, STR_ERROR_CAN_T_REMOVE_TRUCK_STATION },
55 STR_ERROR_CAN_T_CONVERT_ROAD,
56 { STR_STATION_BUILD_BUS_ORIENTATION, STR_STATION_BUILD_TRUCK_ORIENTATION },
57 { STR_STATION_BUILD_BUS_ORIENTATION_TOOLTIP, STR_STATION_BUILD_TRUCK_ORIENTATION_TOOLTIP },
60 /* Powered roadtypes */
61 ROADTYPES_ROAD,
63 /* flags */
64 ROTFB_TOWN_BUILD,
66 /* cost multiplier */
69 /* maintenance cost multiplier */
70 16,
72 /* max speed */
75 /* road type label */
76 'ROAD',
78 /* alternate labels */
79 RoadTypeLabelList(),
81 /* map colour */
82 0x01,
84 /* introduction date */
85 MIN_YEAR,
87 /* roadtypes required for this to be introduced */
88 ROADTYPES_NONE,
90 /* introduction road types */
91 ROADTYPES_ROAD,
93 /* sort order */
94 0x07,
96 { nullptr },
97 { nullptr },
100 /* Electrified Tram */
102 /* GUI sprites */
104 SPR_IMG_TRAMWAY_X_DIR,
105 SPR_IMG_TRAMWAY_Y_DIR,
106 SPR_IMG_AUTOTRAM,
107 SPR_IMG_ROAD_DEPOT,
108 SPR_IMG_ROAD_TUNNEL,
109 SPR_IMG_CONVERT_TRAM,
113 SPR_CURSOR_TRAMWAY_NESW,
114 SPR_CURSOR_TRAMWAY_NWSE,
115 SPR_CURSOR_AUTOTRAM,
116 SPR_CURSOR_ROAD_DEPOT,
117 SPR_CURSOR_ROAD_TUNNEL,
118 SPR_CURSOR_CONVERT_TRAM,
121 /* strings */
123 STR_ROAD_NAME_TRAM,
124 STR_ROAD_TOOLBAR_TRAM_CONSTRUCTION_CAPTION,
125 STR_ROAD_MENU_TRAM_CONSTRUCTION,
126 STR_BUY_VEHICLE_TRAM_VEHICLE_CAPTION,
127 STR_REPLACE_TRAM_VEHICLES,
128 STR_ENGINE_PREVIEW_TRAM_VEHICLE,
130 STR_ERROR_CAN_T_BUILD_TRAMWAY_HERE,
131 STR_ERROR_CAN_T_REMOVE_TRAMWAY_FROM,
132 STR_ERROR_CAN_T_BUILD_TRAM_DEPOT,
133 { STR_ERROR_CAN_T_BUILD_PASSENGER_TRAM_STATION, STR_ERROR_CAN_T_BUILD_CARGO_TRAM_STATION },
134 { STR_ERROR_CAN_T_REMOVE_PASSENGER_TRAM_STATION, STR_ERROR_CAN_T_REMOVE_CARGO_TRAM_STATION },
135 STR_ERROR_CAN_T_CONVERT_TRAMWAY,
136 { STR_STATION_BUILD_PASSENGER_TRAM_ORIENTATION, STR_STATION_BUILD_CARGO_TRAM_ORIENTATION },
137 { STR_STATION_BUILD_PASSENGER_TRAM_ORIENTATION_TOOLTIP, STR_STATION_BUILD_CARGO_TRAM_ORIENTATION_TOOLTIP },
140 /* Powered roadtypes */
141 ROADTYPES_TRAM,
143 /* flags */
144 ROTFB_CATENARY | ROTFB_NO_HOUSES,
146 /* cost multiplier */
149 /* maintenance cost multiplier */
152 /* max speed */
155 /* road type label */
156 'ELRL',
158 /* alternate labels */
159 RoadTypeLabelList(),
161 /* map colour */
162 0x01,
164 /* introduction date */
165 INVALID_DATE,
167 /* roadtypes required for this to be introduced */
168 ROADTYPES_NONE,
170 /* introduction road types */
171 ROADTYPES_TRAM,
173 /* sort order */
174 0x17,
176 { nullptr },
177 { nullptr },
181 #endif /* ROADTYPES_H */