284 * List of flags for a command. |
284 * List of flags for a command. |
285 * |
285 * |
286 * This enums defines some flags which can be used for the commands. |
286 * This enums defines some flags which can be used for the commands. |
287 */ |
287 */ |
288 enum { |
288 enum { |
289 DC_EXEC = 0x01, ///< execute the given command |
289 DC_EXEC = 0x001, ///< execute the given command |
290 DC_AUTO = 0x02, ///< don't allow building on structures |
290 DC_AUTO = 0x002, ///< don't allow building on structures |
291 DC_QUERY_COST = 0x04, ///< query cost only, don't build. |
291 DC_QUERY_COST = 0x004, ///< query cost only, don't build. |
292 DC_NO_WATER = 0x08, ///< don't allow building on water |
292 DC_NO_WATER = 0x008, ///< don't allow building on water |
293 DC_NO_RAIL_OVERLAP = 0x10, ///< don't allow overlap of rails (used in buildrail) |
293 DC_NO_RAIL_OVERLAP = 0x010, ///< don't allow overlap of rails (used in buildrail) |
294 DC_AI_BUILDING = 0x20, ///< special building rules for AI |
294 DC_AI_BUILDING = 0x020, ///< special building rules for AI |
295 DC_NO_TOWN_RATING = 0x40, ///< town rating does not disallow you from building |
295 DC_NO_TOWN_RATING = 0x040, ///< town rating does not disallow you from building |
296 DC_BANKRUPT = 0x80, ///< company bankrupts, skip money check, skip vehicle on tile check in some cases |
296 DC_BANKRUPT = 0x080, ///< company bankrupts, skip money check, skip vehicle on tile check in some cases |
|
297 DC_AUTOREPLACE = 0x100, ///< autoreplace/autorenew is in progress |
297 }; |
298 }; |
298 |
299 |
299 /** |
300 /** |
300 * Used to combine a StringID with the command. |
301 * Used to combine a StringID with the command. |
301 * |
302 * |