104 * nor send to the server in a network game. |
104 * nor send to the server in a network game. |
105 * |
105 * |
106 * @see _command_proc_table |
106 * @see _command_proc_table |
107 */ |
107 */ |
108 enum { |
108 enum { |
109 CMD_BUILD_RAILROAD_TRACK = 0, ///< build a rail track |
109 CMD_BUILD_RAILROAD_TRACK, ///< build a rail track |
110 CMD_REMOVE_RAILROAD_TRACK = 1, ///< remove a rail track |
110 CMD_REMOVE_RAILROAD_TRACK, ///< remove a rail track |
111 CMD_BUILD_SINGLE_RAIL = 2, ///< build a single rail track |
111 CMD_BUILD_SINGLE_RAIL, ///< build a single rail track |
112 CMD_REMOVE_SINGLE_RAIL = 3, ///< remove a single rail track |
112 CMD_REMOVE_SINGLE_RAIL, ///< remove a single rail track |
113 CMD_LANDSCAPE_CLEAR = 4, ///< demolish a tile |
113 CMD_LANDSCAPE_CLEAR, ///< demolish a tile |
114 CMD_BUILD_BRIDGE = 5, ///< build a bridge |
114 CMD_BUILD_BRIDGE, ///< build a bridge |
115 CMD_BUILD_RAILROAD_STATION = 6, ///< build a railroad station |
115 CMD_BUILD_RAILROAD_STATION, ///< build a railroad station |
116 CMD_BUILD_TRAIN_DEPOT = 7, ///< build a train depot |
116 CMD_BUILD_TRAIN_DEPOT, ///< build a train depot |
117 CMD_BUILD_SIGNALS = 8, ///< build a signal |
117 CMD_BUILD_SIGNALS, ///< build a signal |
118 CMD_REMOVE_SIGNALS = 9, ///< remove a signal |
118 CMD_REMOVE_SIGNALS, ///< remove a signal |
119 CMD_TERRAFORM_LAND = 10, ///< terraform a tile |
119 CMD_TERRAFORM_LAND, ///< terraform a tile |
120 CMD_PURCHASE_LAND_AREA = 11, ///< purchase a tile |
120 CMD_PURCHASE_LAND_AREA, ///< purchase a tile |
121 CMD_SELL_LAND_AREA = 12, ///< sell a bought tile before |
121 CMD_SELL_LAND_AREA, ///< sell a bought tile before |
122 CMD_BUILD_TUNNEL = 13, ///< build a tunnel |
122 CMD_BUILD_TUNNEL, ///< build a tunnel |
123 |
123 |
124 CMD_REMOVE_FROM_RAILROAD_STATION = 14, ///< remove a tile station |
124 CMD_REMOVE_FROM_RAILROAD_STATION, ///< remove a tile station |
125 CMD_CONVERT_RAIL = 15, ///< convert a rail type |
125 CMD_CONVERT_RAIL, ///< convert a rail type |
126 |
126 |
127 CMD_BUILD_TRAIN_WAYPOINT = 16, ///< build a waypoint |
127 CMD_BUILD_TRAIN_WAYPOINT, ///< build a waypoint |
128 CMD_RENAME_WAYPOINT = 17, ///< rename a waypoint |
128 CMD_RENAME_WAYPOINT, ///< rename a waypoint |
129 CMD_REMOVE_TRAIN_WAYPOINT = 18, ///< remove a waypoint |
129 CMD_REMOVE_TRAIN_WAYPOINT, ///< remove a waypoint |
130 |
130 |
131 CMD_BUILD_ROAD_STOP = 21, ///< build a road stop |
131 CMD_BUILD_ROAD_STOP, ///< build a road stop |
132 CMD_REMOVE_ROAD_STOP = 22, ///< remove a road stop |
132 CMD_REMOVE_ROAD_STOP, ///< remove a road stop |
133 CMD_BUILD_LONG_ROAD = 23, ///< build a complete road (not a "half" one) |
133 CMD_BUILD_LONG_ROAD, ///< build a complete road (not a "half" one) |
134 CMD_REMOVE_LONG_ROAD = 24, ///< remove a complete road (not a "half" one) |
134 CMD_REMOVE_LONG_ROAD, ///< remove a complete road (not a "half" one) |
135 CMD_BUILD_ROAD = 25, ///< build a "half" road |
135 CMD_BUILD_ROAD, ///< build a "half" road |
136 CMD_REMOVE_ROAD = 26, ///< remove a "half" road |
136 CMD_REMOVE_ROAD, ///< remove a "half" road |
137 CMD_BUILD_ROAD_DEPOT = 27, ///< build a road depot |
137 CMD_BUILD_ROAD_DEPOT, ///< build a road depot |
138 |
138 |
139 CMD_BUILD_AIRPORT = 29, ///< build an airport |
139 CMD_BUILD_AIRPORT, ///< build an airport |
140 |
140 |
141 CMD_BUILD_DOCK = 30, ///< build a dock |
141 CMD_BUILD_DOCK, ///< build a dock |
142 |
142 |
143 CMD_BUILD_SHIP_DEPOT = 31, ///< build a ship depot |
143 CMD_BUILD_SHIP_DEPOT, ///< build a ship depot |
144 CMD_BUILD_BUOY = 32, ///< build a buoy |
144 CMD_BUILD_BUOY, ///< build a buoy |
145 |
145 |
146 CMD_PLANT_TREE = 33, ///< plant a tree |
146 CMD_PLANT_TREE, ///< plant a tree |
147 |
147 |
148 CMD_BUILD_RAIL_VEHICLE = 34, ///< build a rail vehicle |
148 CMD_BUILD_RAIL_VEHICLE, ///< build a rail vehicle |
149 CMD_MOVE_RAIL_VEHICLE = 35, ///< move a rail vehicle (in the depot) |
149 CMD_MOVE_RAIL_VEHICLE, ///< move a rail vehicle (in the depot) |
150 |
150 |
151 CMD_START_STOP_TRAIN = 36, ///< start or stop a train |
151 CMD_START_STOP_TRAIN, ///< start or stop a train |
152 |
152 |
153 CMD_SELL_RAIL_WAGON = 38, ///< sell a rail wagon |
153 CMD_SELL_RAIL_WAGON, ///< sell a rail wagon |
154 |
154 |
155 CMD_SEND_TRAIN_TO_DEPOT = 39, ///< send a train to a depot |
155 CMD_SEND_TRAIN_TO_DEPOT, ///< send a train to a depot |
156 CMD_FORCE_TRAIN_PROCEED = 40, ///< proceed a train to pass a red signal |
156 CMD_FORCE_TRAIN_PROCEED, ///< proceed a train to pass a red signal |
157 CMD_REVERSE_TRAIN_DIRECTION = 41, ///< turn a train around |
157 CMD_REVERSE_TRAIN_DIRECTION, ///< turn a train around |
158 |
158 |
159 CMD_MODIFY_ORDER = 42, ///< modify an order (like set full-load) |
159 CMD_MODIFY_ORDER, ///< modify an order (like set full-load) |
160 CMD_SKIP_TO_ORDER = 43, ///< skip an order to the next of specific one |
160 CMD_SKIP_TO_ORDER, ///< skip an order to the next of specific one |
161 CMD_DELETE_ORDER = 44, ///< delete an order |
161 CMD_DELETE_ORDER, ///< delete an order |
162 CMD_INSERT_ORDER = 45, ///< insert a new order |
162 CMD_INSERT_ORDER, ///< insert a new order |
163 |
163 |
164 CMD_CHANGE_SERVICE_INT = 46, ///< change the server interval of a vehicle |
164 CMD_CHANGE_SERVICE_INT, ///< change the server interval of a vehicle |
165 |
165 |
166 CMD_BUILD_INDUSTRY = 47, ///< build a new industry |
166 CMD_BUILD_INDUSTRY, ///< build a new industry |
167 |
167 |
168 CMD_BUILD_COMPANY_HQ = 48, ///< build the company headquarter |
168 CMD_BUILD_COMPANY_HQ, ///< build the company headquarter |
169 CMD_SET_PLAYER_FACE = 49, ///< set the face of the player/company |
169 CMD_SET_PLAYER_FACE, ///< set the face of the player/company |
170 CMD_SET_PLAYER_COLOR = 50, ///< set the color of the player/company |
170 CMD_SET_PLAYER_COLOR, ///< set the color of the player/company |
171 |
171 |
172 CMD_INCREASE_LOAN = 51, ///< increase the loan from the bank |
172 CMD_INCREASE_LOAN, ///< increase the loan from the bank |
173 CMD_DECREASE_LOAN = 52, ///< decrease the loan from the bank |
173 CMD_DECREASE_LOAN, ///< decrease the loan from the bank |
174 |
174 |
175 CMD_WANT_ENGINE_PREVIEW = 53, ///< confirm the preview of an engine |
175 CMD_WANT_ENGINE_PREVIEW, ///< confirm the preview of an engine |
176 |
176 |
177 CMD_NAME_VEHICLE = 54, ///< rename a whole vehicle |
177 CMD_NAME_VEHICLE, ///< rename a whole vehicle |
178 CMD_RENAME_ENGINE = 55, ///< rename a engine (in the engine list) |
178 CMD_RENAME_ENGINE, ///< rename a engine (in the engine list) |
179 CMD_CHANGE_COMPANY_NAME = 56, ///< change the company name |
179 CMD_CHANGE_COMPANY_NAME, ///< change the company name |
180 CMD_CHANGE_PRESIDENT_NAME = 57, ///< change the president name |
180 CMD_CHANGE_PRESIDENT_NAME, ///< change the president name |
181 CMD_RENAME_STATION = 58, ///< rename a station |
181 CMD_RENAME_STATION, ///< rename a station |
182 |
182 |
183 CMD_SELL_AIRCRAFT = 59, ///< sell an aircraft |
183 CMD_SELL_AIRCRAFT, ///< sell an aircraft |
184 CMD_START_STOP_AIRCRAFT = 60, ///< start/stop an aircraft |
184 CMD_START_STOP_AIRCRAFT, ///< start/stop an aircraft |
185 CMD_BUILD_AIRCRAFT = 61, ///< build an aircraft |
185 CMD_BUILD_AIRCRAFT, ///< build an aircraft |
186 CMD_SEND_AIRCRAFT_TO_HANGAR = 62, ///< send an aircraft to a hanger |
186 CMD_SEND_AIRCRAFT_TO_HANGAR, ///< send an aircraft to a hanger |
187 CMD_REFIT_AIRCRAFT = 64, ///< refit the cargo space of an aircraft |
187 CMD_REFIT_AIRCRAFT, ///< refit the cargo space of an aircraft |
188 |
188 |
189 CMD_PLACE_SIGN = 65, ///< place a sign |
189 CMD_PLACE_SIGN, ///< place a sign |
190 CMD_RENAME_SIGN = 66, ///< rename a sign |
190 CMD_RENAME_SIGN, ///< rename a sign |
191 |
191 |
192 CMD_BUILD_ROAD_VEH = 67, ///< build a road vehicle |
192 CMD_BUILD_ROAD_VEH, ///< build a road vehicle |
193 CMD_START_STOP_ROADVEH = 68, ///< start/stop a road vehicle |
193 CMD_START_STOP_ROADVEH, ///< start/stop a road vehicle |
194 CMD_SELL_ROAD_VEH = 69, ///< sell a road vehicle |
194 CMD_SELL_ROAD_VEH, ///< sell a road vehicle |
195 CMD_SEND_ROADVEH_TO_DEPOT = 70, ///< send a road vehicle to the depot |
195 CMD_SEND_ROADVEH_TO_DEPOT, ///< send a road vehicle to the depot |
196 CMD_TURN_ROADVEH = 71, ///< turn a road vehicle around |
196 CMD_TURN_ROADVEH, ///< turn a road vehicle around |
197 CMD_REFIT_ROAD_VEH = 72, ///< refit the cargo space of a road vehicle |
197 CMD_REFIT_ROAD_VEH, ///< refit the cargo space of a road vehicle |
198 |
198 |
199 CMD_PAUSE = 73, ///< pause the game |
199 CMD_PAUSE, ///< pause the game |
200 |
200 |
201 CMD_BUY_SHARE_IN_COMPANY = 74, ///< buy a share from a company |
201 CMD_BUY_SHARE_IN_COMPANY, ///< buy a share from a company |
202 CMD_SELL_SHARE_IN_COMPANY = 75, ///< sell a share from a company |
202 CMD_SELL_SHARE_IN_COMPANY, ///< sell a share from a company |
203 CMD_BUY_COMPANY = 76, ///< buy a company which is bankrupt |
203 CMD_BUY_COMPANY, ///< buy a company which is bankrupt |
204 |
204 |
205 CMD_BUILD_TOWN = 77, ///< build a town |
205 CMD_BUILD_TOWN, ///< build a town |
206 |
206 |
207 CMD_RENAME_TOWN = 80, ///< rename a town |
207 CMD_RENAME_TOWN, ///< rename a town |
208 CMD_DO_TOWN_ACTION = 81, ///< do a action from the town detail window (like advertises or bribe) |
208 CMD_DO_TOWN_ACTION, ///< do a action from the town detail window (like advertises or bribe) |
209 |
209 |
210 CMD_SET_ROAD_DRIVE_SIDE = 82, ///< set the side where the road vehicles drive |
210 CMD_SET_ROAD_DRIVE_SIDE, ///< set the side where the road vehicles drive |
211 |
211 |
212 CMD_CHANGE_DIFFICULTY_LEVEL = 85, ///< change the difficult of a game (each setting for it own) |
212 CMD_CHANGE_DIFFICULTY_LEVEL, ///< change the difficult of a game (each setting for it own) |
213 |
213 |
214 CMD_START_STOP_SHIP = 86, ///< start/stop a ship |
214 CMD_START_STOP_SHIP, ///< start/stop a ship |
215 CMD_SELL_SHIP = 87, ///< sell a ship |
215 CMD_SELL_SHIP, ///< sell a ship |
216 CMD_BUILD_SHIP = 88, ///< build a new ship |
216 CMD_BUILD_SHIP, ///< build a new ship |
217 CMD_SEND_SHIP_TO_DEPOT = 89, ///< send a ship to a depot |
217 CMD_SEND_SHIP_TO_DEPOT, ///< send a ship to a depot |
218 CMD_REFIT_SHIP = 91, ///< refit the cargo space of a ship |
218 CMD_REFIT_SHIP, ///< refit the cargo space of a ship |
219 |
219 |
220 CMD_ORDER_REFIT = 98, ///< change the refit informaction of an order (for "goto depot" ) |
220 CMD_ORDER_REFIT, ///< change the refit informaction of an order (for "goto depot" ) |
221 CMD_CLONE_ORDER = 99, ///< clone (and share) an order |
221 CMD_CLONE_ORDER, ///< clone (and share) an order |
222 CMD_CLEAR_AREA = 100, ///< clear an area |
222 CMD_CLEAR_AREA, ///< clear an area |
223 |
223 |
224 CMD_MONEY_CHEAT = 102, ///< do the money cheat |
224 CMD_MONEY_CHEAT, ///< do the money cheat |
225 CMD_BUILD_CANAL = 103, ///< build a canal |
225 CMD_BUILD_CANAL, ///< build a canal |
226 |
226 |
227 CMD_PLAYER_CTRL = 104, ///< used in multiplayer to create a new player etc. |
227 CMD_PLAYER_CTRL, ///< used in multiplayer to create a new player etc. |
228 CMD_LEVEL_LAND = 105, ///< level land |
228 CMD_LEVEL_LAND, ///< level land |
229 |
229 |
230 CMD_REFIT_RAIL_VEHICLE = 106, ///< refit the cargo space of a train |
230 CMD_REFIT_RAIL_VEHICLE, ///< refit the cargo space of a train |
231 CMD_RESTORE_ORDER_INDEX = 107, ///< restore vehicle order-index and service interval |
231 CMD_RESTORE_ORDER_INDEX, ///< restore vehicle order-index and service interval |
232 CMD_BUILD_LOCK = 108, ///< build a lock |
232 CMD_BUILD_LOCK, ///< build a lock |
233 |
233 |
234 CMD_BUILD_SIGNAL_TRACK = 110, ///< add signals along a track (by dragging) |
234 CMD_BUILD_SIGNAL_TRACK, ///< add signals along a track (by dragging) |
235 CMD_REMOVE_SIGNAL_TRACK = 111, ///< remove signals along a track (by dragging) |
235 CMD_REMOVE_SIGNAL_TRACK, ///< remove signals along a track (by dragging) |
236 |
236 |
237 CMD_GIVE_MONEY = 113, ///< give money to an other player |
237 CMD_GIVE_MONEY, ///< give money to an other player |
238 CMD_CHANGE_PATCH_SETTING = 114, ///< change a patch setting |
238 CMD_CHANGE_PATCH_SETTING, ///< change a patch setting |
239 |
239 |
240 CMD_SET_AUTOREPLACE = 115, ///< set an autoreplace entry |
240 CMD_SET_AUTOREPLACE, ///< set an autoreplace entry |
241 |
241 |
242 CMD_CLONE_VEHICLE = 116, ///< clone a vehicle |
242 CMD_CLONE_VEHICLE, ///< clone a vehicle |
243 CMD_MASS_START_STOP = 117, ///< start/stop all vehicles (in a depot) |
243 CMD_MASS_START_STOP, ///< start/stop all vehicles (in a depot) |
244 CMD_DEPOT_SELL_ALL_VEHICLES = 118, ///< sell all vehicles which are in a given depot |
244 CMD_DEPOT_SELL_ALL_VEHICLES, ///< sell all vehicles which are in a given depot |
245 CMD_DEPOT_MASS_AUTOREPLACE = 119, ///< force the autoreplace to take action in a given depot |
245 CMD_DEPOT_MASS_AUTOREPLACE, ///< force the autoreplace to take action in a given depot |
246 |
246 |
247 CMD_CREATE_GROUP = 120, ///< create a new group |
247 CMD_CREATE_GROUP, ///< create a new group |
248 CMD_DELETE_GROUP = 121, ///< delete a group |
248 CMD_DELETE_GROUP, ///< delete a group |
249 CMD_RENAME_GROUP = 122, ///< rename a group |
249 CMD_RENAME_GROUP, ///< rename a group |
250 CMD_ADD_VEHICLE_GROUP = 123, ///< add a vehicle to a group |
250 CMD_ADD_VEHICLE_GROUP, ///< add a vehicle to a group |
251 CMD_ADD_SHARED_VEHICLE_GROUP = 124, ///< add all other shared vehicles to a group which are missing |
251 CMD_ADD_SHARED_VEHICLE_GROUP, ///< add all other shared vehicles to a group which are missing |
252 CMD_REMOVE_ALL_VEHICLES_GROUP = 125, ///< remove all vehicles from a group |
252 CMD_REMOVE_ALL_VEHICLES_GROUP, ///< remove all vehicles from a group |
253 CMD_SET_GROUP_REPLACE_PROTECTION = 126, ///< set the autoreplace-protection for a group |
253 CMD_SET_GROUP_REPLACE_PROTECTION, ///< set the autoreplace-protection for a group |
254 |
254 |
255 CMD_MOVE_ORDER = 127, ///< move an order |
255 CMD_MOVE_ORDER, ///< move an order |
256 CMD_CHANGE_TIMETABLE = 128, ///< change the timetable for a vehicle |
256 CMD_CHANGE_TIMETABLE, ///< change the timetable for a vehicle |
257 CMD_SET_VEHICLE_ON_TIME = 129, ///< set the vehicle on time feature (timetable) |
257 CMD_SET_VEHICLE_ON_TIME, ///< set the vehicle on time feature (timetable) |
258 CMD_AUTOFILL_TIMETABLE = 130, ///< autofill the timetable |
258 CMD_AUTOFILL_TIMETABLE, ///< autofill the timetable |
259 }; |
259 }; |
260 |
260 |
261 /** |
261 /** |
262 * List of flags for a command. |
262 * List of flags for a command. |
263 * |
263 * |