14 * nor send to the server in a network game. |
14 * nor send to the server in a network game. |
15 * |
15 * |
16 * @see _command_proc_table |
16 * @see _command_proc_table |
17 */ |
17 */ |
18 enum { |
18 enum { |
19 CMD_BUILD_RAILROAD_TRACK = 0, ///< build a rail track |
19 CMD_BUILD_RAILROAD_TRACK = 0, ///< build a rail track |
20 CMD_REMOVE_RAILROAD_TRACK = 1, ///< remove a rail track |
20 CMD_REMOVE_RAILROAD_TRACK = 1, ///< remove a rail track |
21 CMD_BUILD_SINGLE_RAIL = 2, ///< build a single rail track |
21 CMD_BUILD_SINGLE_RAIL = 2, ///< build a single rail track |
22 CMD_REMOVE_SINGLE_RAIL = 3, ///< remove a single rail track |
22 CMD_REMOVE_SINGLE_RAIL = 3, ///< remove a single rail track |
23 CMD_LANDSCAPE_CLEAR = 4, ///< demolish a tile |
23 CMD_LANDSCAPE_CLEAR = 4, ///< demolish a tile |
24 CMD_BUILD_BRIDGE = 5, ///< build a bridge |
24 CMD_BUILD_BRIDGE = 5, ///< build a bridge |
25 CMD_BUILD_RAILROAD_STATION = 6, ///< build a railroad station |
25 CMD_BUILD_RAILROAD_STATION = 6, ///< build a railroad station |
26 CMD_BUILD_TRAIN_DEPOT = 7, ///< build a train depot |
26 CMD_BUILD_TRAIN_DEPOT = 7, ///< build a train depot |
27 CMD_BUILD_SIGNALS = 8, ///< build a signal |
27 CMD_BUILD_SIGNALS = 8, ///< build a signal |
28 CMD_REMOVE_SIGNALS = 9, ///< remove a signal |
28 CMD_REMOVE_SIGNALS = 9, ///< remove a signal |
29 CMD_TERRAFORM_LAND = 10, ///< terraform a tile |
29 CMD_TERRAFORM_LAND = 10, ///< terraform a tile |
30 CMD_PURCHASE_LAND_AREA = 11, ///< purchase a tile |
30 CMD_PURCHASE_LAND_AREA = 11, ///< purchase a tile |
31 CMD_SELL_LAND_AREA = 12, ///< sell a bought tile before |
31 CMD_SELL_LAND_AREA = 12, ///< sell a bought tile before |
32 CMD_BUILD_TUNNEL = 13, ///< build a tunnel |
32 CMD_BUILD_TUNNEL = 13, ///< build a tunnel |
33 |
33 |
34 CMD_REMOVE_FROM_RAILROAD_STATION = 14, ///< remove a tile station |
34 CMD_REMOVE_FROM_RAILROAD_STATION = 14, ///< remove a tile station |
35 CMD_CONVERT_RAIL = 15, ///< convert a rail type |
35 CMD_CONVERT_RAIL = 15, ///< convert a rail type |
36 |
36 |
37 CMD_BUILD_TRAIN_WAYPOINT = 16, ///< build a waypoint |
37 CMD_BUILD_TRAIN_WAYPOINT = 16, ///< build a waypoint |
38 CMD_RENAME_WAYPOINT = 17, ///< rename a waypoint |
38 CMD_RENAME_WAYPOINT = 17, ///< rename a waypoint |
39 CMD_REMOVE_TRAIN_WAYPOINT = 18, ///< remove a waypoint |
39 CMD_REMOVE_TRAIN_WAYPOINT = 18, ///< remove a waypoint |
40 |
40 |
41 CMD_BUILD_ROAD_STOP = 21, ///< build a road stop |
41 CMD_BUILD_ROAD_STOP = 21, ///< build a road stop |
42 CMD_REMOVE_ROAD_STOP = 22, ///< remove a road stop |
42 CMD_REMOVE_ROAD_STOP = 22, ///< remove a road stop |
43 CMD_BUILD_LONG_ROAD = 23, ///< build a complete road (not a "half" one) |
43 CMD_BUILD_LONG_ROAD = 23, ///< build a complete road (not a "half" one) |
44 CMD_REMOVE_LONG_ROAD = 24, ///< remove a complete road (not a "half" one) |
44 CMD_REMOVE_LONG_ROAD = 24, ///< remove a complete road (not a "half" one) |
45 CMD_BUILD_ROAD = 25, ///< build a "half" road |
45 CMD_BUILD_ROAD = 25, ///< build a "half" road |
46 CMD_REMOVE_ROAD = 26, ///< remove a "half" road |
46 CMD_REMOVE_ROAD = 26, ///< remove a "half" road |
47 CMD_BUILD_ROAD_DEPOT = 27, ///< build a road depot |
47 CMD_BUILD_ROAD_DEPOT = 27, ///< build a road depot |
48 |
48 |
49 CMD_BUILD_AIRPORT = 29, ///< build an airport |
49 CMD_BUILD_AIRPORT = 29, ///< build an airport |
50 |
50 |
51 CMD_BUILD_DOCK = 30, ///< build a dock |
51 CMD_BUILD_DOCK = 30, ///< build a dock |
52 |
52 |
53 CMD_BUILD_SHIP_DEPOT = 31, ///< build a ship depot |
53 CMD_BUILD_SHIP_DEPOT = 31, ///< build a ship depot |
54 CMD_BUILD_BUOY = 32, ///< build a buoy |
54 CMD_BUILD_BUOY = 32, ///< build a buoy |
55 |
55 |
56 CMD_PLANT_TREE = 33, ///< plant a tree |
56 CMD_PLANT_TREE = 33, ///< plant a tree |
57 |
57 |
58 CMD_BUILD_RAIL_VEHICLE = 34, ///< build a rail vehicle |
58 CMD_BUILD_RAIL_VEHICLE = 34, ///< build a rail vehicle |
67 CMD_REVERSE_TRAIN_DIRECTION = 41, ///< turn a train around |
67 CMD_REVERSE_TRAIN_DIRECTION = 41, ///< turn a train around |
68 |
68 |
69 CMD_MODIFY_ORDER = 42, ///< modify an order (like set full-load) |
69 CMD_MODIFY_ORDER = 42, ///< modify an order (like set full-load) |
70 CMD_SKIP_TO_ORDER = 43, ///< skip an order to the next of specific one |
70 CMD_SKIP_TO_ORDER = 43, ///< skip an order to the next of specific one |
71 CMD_DELETE_ORDER = 44, ///< delete an order |
71 CMD_DELETE_ORDER = 44, ///< delete an order |
72 CMD_INSERT_ORDER = 45, ///< insert a new order |
72 CMD_INSERT_ORDER = 45, ///< insert a new order |
73 |
73 |
74 CMD_CHANGE_SERVICE_INT = 46, ///< change the server interval of a vehicle |
74 CMD_CHANGE_SERVICE_INT = 46, ///< change the server interval of a vehicle |
75 |
75 |
76 CMD_BUILD_INDUSTRY = 47, ///< build a new industry |
76 CMD_BUILD_INDUSTRY = 47, ///< build a new industry |
77 |
77 |
78 CMD_BUILD_COMPANY_HQ = 48, ///< build the company headquarter |
78 CMD_BUILD_COMPANY_HQ = 48, ///< build the company headquarter |
79 CMD_SET_PLAYER_FACE = 49, ///< set the face of the player/company |
79 CMD_SET_PLAYER_FACE = 49, ///< set the face of the player/company |
80 CMD_SET_PLAYER_COLOR = 50, ///< set the color of the player/company |
80 CMD_SET_PLAYER_COLOR = 50, ///< set the color of the player/company |
81 |
81 |
82 CMD_INCREASE_LOAN = 51, ///< increase the loan from the bank |
82 CMD_INCREASE_LOAN = 51, ///< increase the loan from the bank |
83 CMD_DECREASE_LOAN = 52, ///< decrease the loan from the bank |
83 CMD_DECREASE_LOAN = 52, ///< decrease the loan from the bank |
84 |
84 |
85 CMD_WANT_ENGINE_PREVIEW = 53, ///< confirm the preview of an engine |
85 CMD_WANT_ENGINE_PREVIEW = 53, ///< confirm the preview of an engine |
86 |
86 |
87 CMD_NAME_VEHICLE = 54, ///< rename a whole vehicle |
87 CMD_NAME_VEHICLE = 54, ///< rename a whole vehicle |
88 CMD_RENAME_ENGINE = 55, ///< rename a engine (in the engine list) |
88 CMD_RENAME_ENGINE = 55, ///< rename a engine (in the engine list) |
89 CMD_CHANGE_COMPANY_NAME = 56, ///< change the company name |
89 CMD_CHANGE_COMPANY_NAME = 56, ///< change the company name |
90 CMD_CHANGE_PRESIDENT_NAME = 57, ///< change the president name |
90 CMD_CHANGE_PRESIDENT_NAME = 57, ///< change the president name |
91 CMD_RENAME_STATION = 58, ///< rename a station |
91 CMD_RENAME_STATION = 58, ///< rename a station |
92 |
92 |
93 CMD_SELL_AIRCRAFT = 59, ///< sell an aircraft |
93 CMD_SELL_AIRCRAFT = 59, ///< sell an aircraft |
94 CMD_START_STOP_AIRCRAFT = 60, ///< start/stop an aircraft |
94 CMD_START_STOP_AIRCRAFT = 60, ///< start/stop an aircraft |
95 CMD_BUILD_AIRCRAFT = 61, ///< build an aircraft |
95 CMD_BUILD_AIRCRAFT = 61, ///< build an aircraft |
96 CMD_SEND_AIRCRAFT_TO_HANGAR = 62, ///< send an aircraft to a hanger |
96 CMD_SEND_AIRCRAFT_TO_HANGAR = 62, ///< send an aircraft to a hanger |
97 CMD_REFIT_AIRCRAFT = 64, ///< refit the cargo space of an aircraft |
97 CMD_REFIT_AIRCRAFT = 64, ///< refit the cargo space of an aircraft |
98 |
98 |
99 CMD_PLACE_SIGN = 65, ///< place a sign |
99 CMD_PLACE_SIGN = 65, ///< place a sign |
100 CMD_RENAME_SIGN = 66, ///< rename a sign |
100 CMD_RENAME_SIGN = 66, ///< rename a sign |
101 |
101 |
102 CMD_BUILD_ROAD_VEH = 67, ///< build a road vehicle |
102 CMD_BUILD_ROAD_VEH = 67, ///< build a road vehicle |
103 CMD_START_STOP_ROADVEH = 68, ///< start/stop a road vehicle |
103 CMD_START_STOP_ROADVEH = 68, ///< start/stop a road vehicle |
104 CMD_SELL_ROAD_VEH = 69, ///< sell a road vehicle |
104 CMD_SELL_ROAD_VEH = 69, ///< sell a road vehicle |
105 CMD_SEND_ROADVEH_TO_DEPOT = 70, ///< send a road vehicle to the depot |
105 CMD_SEND_ROADVEH_TO_DEPOT = 70, ///< send a road vehicle to the depot |
106 CMD_TURN_ROADVEH = 71, ///< turn a road vehicle around |
106 CMD_TURN_ROADVEH = 71, ///< turn a road vehicle around |
107 CMD_REFIT_ROAD_VEH = 72, ///< refit the cargo space of a road vehicle |
107 CMD_REFIT_ROAD_VEH = 72, ///< refit the cargo space of a road vehicle |
108 |
108 |
109 CMD_PAUSE = 73, ///< pause the game |
109 CMD_PAUSE = 73, ///< pause the game |
110 |
110 |
111 CMD_BUY_SHARE_IN_COMPANY = 74, ///< buy a share from a company |
111 CMD_BUY_SHARE_IN_COMPANY = 74, ///< buy a share from a company |
112 CMD_SELL_SHARE_IN_COMPANY = 75, ///< sell a share from a company |
112 CMD_SELL_SHARE_IN_COMPANY = 75, ///< sell a share from a company |
113 CMD_BUY_COMPANY = 76, ///< buy a company which is bankrupt |
113 CMD_BUY_COMPANY = 76, ///< buy a company which is bankrupt |
114 |
114 |
115 CMD_BUILD_TOWN = 77, ///< build a town |
115 CMD_BUILD_TOWN = 77, ///< build a town |
116 |
116 |
117 CMD_RENAME_TOWN = 80, ///< rename a town |
117 CMD_RENAME_TOWN = 80, ///< rename a town |
118 CMD_DO_TOWN_ACTION = 81, ///< do a action from the town detail window (like advertises or bribe) |
118 CMD_DO_TOWN_ACTION = 81, ///< do a action from the town detail window (like advertises or bribe) |
119 |
119 |
120 CMD_SET_ROAD_DRIVE_SIDE = 82, ///< set the side where the road vehicles drive |
120 CMD_SET_ROAD_DRIVE_SIDE = 82, ///< set the side where the road vehicles drive |
121 |
121 |
122 CMD_CHANGE_DIFFICULTY_LEVEL = 85, ///< change the difficult of a game (each setting for it own) |
122 CMD_CHANGE_DIFFICULTY_LEVEL = 85, ///< change the difficult of a game (each setting for it own) |
123 |
123 |
124 CMD_START_STOP_SHIP = 86, ///< start/stop a ship |
124 CMD_START_STOP_SHIP = 86, ///< start/stop a ship |
125 CMD_SELL_SHIP = 87, ///< sell a ship |
125 CMD_SELL_SHIP = 87, ///< sell a ship |
126 CMD_BUILD_SHIP = 88, ///< build a new ship |
126 CMD_BUILD_SHIP = 88, ///< build a new ship |
127 CMD_SEND_SHIP_TO_DEPOT = 89, ///< send a ship to a depot |
127 CMD_SEND_SHIP_TO_DEPOT = 89, ///< send a ship to a depot |
128 CMD_REFIT_SHIP = 91, ///< refit the cargo space of a ship |
128 CMD_REFIT_SHIP = 91, ///< refit the cargo space of a ship |
129 |
129 |
130 CMD_ORDER_REFIT = 98, ///< change the refit informaction of an order (for "goto depot" ) |
130 CMD_ORDER_REFIT = 98, ///< change the refit informaction of an order (for "goto depot" ) |
131 CMD_CLONE_ORDER = 99, ///< clone (and share) an order |
131 CMD_CLONE_ORDER = 99, ///< clone (and share) an order |
132 CMD_CLEAR_AREA = 100, ///< clear an area |
132 CMD_CLEAR_AREA = 100, ///< clear an area |
133 |
133 |
134 CMD_MONEY_CHEAT = 102, ///< do the money cheat |
134 CMD_MONEY_CHEAT = 102, ///< do the money cheat |
135 CMD_BUILD_CANAL = 103, ///< build a canal |
135 CMD_BUILD_CANAL = 103, ///< build a canal |
136 |
136 |
137 CMD_PLAYER_CTRL = 104, ///< used in multiplayer to create a new player etc. |
137 CMD_PLAYER_CTRL = 104, ///< used in multiplayer to create a new player etc. |
138 CMD_LEVEL_LAND = 105, ///< level land |
138 CMD_LEVEL_LAND = 105, ///< level land |
139 |
139 |
140 CMD_REFIT_RAIL_VEHICLE = 106, ///< refit the cargo space of a train |
140 CMD_REFIT_RAIL_VEHICLE = 106, ///< refit the cargo space of a train |
141 CMD_RESTORE_ORDER_INDEX = 107, ///< restore vehicle order-index and service interval |
141 CMD_RESTORE_ORDER_INDEX = 107, ///< restore vehicle order-index and service interval |
142 CMD_BUILD_LOCK = 108, ///< build a lock |
142 CMD_BUILD_LOCK = 108, ///< build a lock |
143 |
143 |
144 CMD_BUILD_SIGNAL_TRACK = 110, ///< add signals along a track (by dragging) |
144 CMD_BUILD_SIGNAL_TRACK = 110, ///< add signals along a track (by dragging) |
145 CMD_REMOVE_SIGNAL_TRACK = 111, ///< remove signals along a track (by dragging) |
145 CMD_REMOVE_SIGNAL_TRACK = 111, ///< remove signals along a track (by dragging) |
146 |
146 |
147 CMD_GIVE_MONEY = 113, ///< give money to an other player |
147 CMD_GIVE_MONEY = 113, ///< give money to an other player |
148 CMD_CHANGE_PATCH_SETTING = 114, ///< change a patch setting |
148 CMD_CHANGE_PATCH_SETTING = 114, ///< change a patch setting |
149 |
149 |
150 CMD_SET_AUTOREPLACE = 115, ///< set an autoreplace entry |
150 CMD_SET_AUTOREPLACE = 115, ///< set an autoreplace entry |
151 |
151 |
152 CMD_CLONE_VEHICLE = 116, ///< clone a vehicle |
152 CMD_CLONE_VEHICLE = 116, ///< clone a vehicle |
153 CMD_MASS_START_STOP = 117, ///< start/stop all vehicles (in a depot) |
153 CMD_MASS_START_STOP = 117, ///< start/stop all vehicles (in a depot) |
154 CMD_DEPOT_SELL_ALL_VEHICLES = 118, ///< sell all vehicles which are in a given depot |
154 CMD_DEPOT_SELL_ALL_VEHICLES = 118, ///< sell all vehicles which are in a given depot |
155 CMD_DEPOT_MASS_AUTOREPLACE = 119, ///< force the autoreplace to take action in a given depot |
155 CMD_DEPOT_MASS_AUTOREPLACE = 119, ///< force the autoreplace to take action in a given depot |
156 |
156 |
157 CMD_CREATE_GROUP = 120, ///< create a new group |
157 CMD_CREATE_GROUP = 120, ///< create a new group |
158 CMD_DELETE_GROUP = 121, ///< delete a group |
158 CMD_DELETE_GROUP = 121, ///< delete a group |
159 CMD_RENAME_GROUP = 122, ///< rename a group |
159 CMD_RENAME_GROUP = 122, ///< rename a group |
160 CMD_ADD_VEHICLE_GROUP = 123, ///< add a vehicle to a group |
160 CMD_ADD_VEHICLE_GROUP = 123, ///< add a vehicle to a group |
161 CMD_ADD_SHARED_VEHICLE_GROUP = 124, ///< add all other shared vehicles to a group which are missing |
161 CMD_ADD_SHARED_VEHICLE_GROUP = 124, ///< add all other shared vehicles to a group which are missing |
162 CMD_REMOVE_ALL_VEHICLES_GROUP = 125, ///< remove all vehicles from a group |
162 CMD_REMOVE_ALL_VEHICLES_GROUP = 125, ///< remove all vehicles from a group |
163 CMD_SET_GROUP_REPLACE_PROTECTION = 126, ///< set the autoreplace-protection for a group |
163 CMD_SET_GROUP_REPLACE_PROTECTION = 126, ///< set the autoreplace-protection for a group |
164 |
164 |
165 CMD_MOVE_ORDER = 127, ///< move an order |
165 CMD_MOVE_ORDER = 127, ///< move an order |
166 CMD_CHANGE_TIMETABLE = 128, ///< change the timetable for a vehicle |
166 CMD_CHANGE_TIMETABLE = 128, ///< change the timetable for a vehicle |
167 CMD_SET_VEHICLE_ON_TIME = 129, ///< set the vehicle on time feature (timetable) |
167 CMD_SET_VEHICLE_ON_TIME = 129, ///< set the vehicle on time feature (timetable) |
168 CMD_AUTOFILL_TIMETABLE = 130, ///< autofill the timetable |
168 CMD_AUTOFILL_TIMETABLE = 130, ///< autofill the timetable |
169 }; |
169 }; |
170 |
170 |
171 /** |
171 /** |
172 * List of flags for a command. |
172 * List of flags for a command. |
173 * |
173 * |