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/>.
8 /** @file timetable_cmd.h Command definitions related to timetables. */
10 #ifndef TIMETABLE_CMD_H
11 #define TIMETABLE_CMD_H
13 #include "command_type.h"
14 #include "timer/timer_game_tick.h"
16 CommandCost
CmdChangeTimetable(DoCommandFlag flags
, VehicleID veh
, VehicleOrderID order_number
, ModifyTimetableFlags mtf
, uint16_t data
);
17 CommandCost
CmdBulkChangeTimetable(DoCommandFlag flags
, VehicleID veh
, ModifyTimetableFlags mtf
, uint16_t data
);
18 CommandCost
CmdSetVehicleOnTime(DoCommandFlag flags
, VehicleID veh
, bool apply_to_group
);
19 CommandCost
CmdAutofillTimetable(DoCommandFlag flags
, VehicleID veh
, bool autofill
, bool preserve_wait_time
);
20 CommandCost
CmdSetTimetableStart(DoCommandFlag flags
, VehicleID veh_id
, bool timetable_all
, TimerGameTick::TickCounter start_tick
);
22 DEF_CMD_TRAIT(CMD_CHANGE_TIMETABLE
, CmdChangeTimetable
, 0, CMDT_ROUTE_MANAGEMENT
)
23 DEF_CMD_TRAIT(CMD_BULK_CHANGE_TIMETABLE
, CmdBulkChangeTimetable
, 0, CMDT_ROUTE_MANAGEMENT
)
24 DEF_CMD_TRAIT(CMD_SET_VEHICLE_ON_TIME
, CmdSetVehicleOnTime
, 0, CMDT_ROUTE_MANAGEMENT
)
25 DEF_CMD_TRAIT(CMD_AUTOFILL_TIMETABLE
, CmdAutofillTimetable
, 0, CMDT_ROUTE_MANAGEMENT
)
26 DEF_CMD_TRAIT(CMD_SET_TIMETABLE_START
, CmdSetTimetableStart
, 0, CMDT_ROUTE_MANAGEMENT
)
28 #endif /* TIMETABLE_CMD_H */