OpenTTD Source 20250524-master-gc366e6a48e
autoreplace_cmd.h
Go to the documentation of this file.
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 */
7
10#ifndef AUTOREPLACE_CMD_H
11#define AUTOREPLACE_CMD_H
12
13#include "command_type.h"
14#include "vehicle_type.h"
15#include "engine_type.h"
16#include "group_type.h"
17
19CommandCost CmdSetAutoReplace(DoCommandFlags flags, GroupID id_g, EngineID old_engine_type, EngineID new_engine_type, bool when_old);
20
23
24#endif /* AUTOREPLACE_CMD_H */
CommandCost CmdSetAutoReplace(DoCommandFlags flags, GroupID id_g, EngineID old_engine_type, EngineID new_engine_type, bool when_old)
Change engine renewal parameters.
CommandCost CmdAutoreplaceVehicle(DoCommandFlags flags, VehicleID veh_id)
Autoreplaces a vehicle Trains are replaced as a whole chain, free wagons in depot are replaced on the...
Common return value for all commands.
Enum-as-bit-set wrapper.
Types related to commands.
@ CMDT_VEHICLE_MANAGEMENT
Stopping, starting, sending to depot, turning around, replace orders etc.
@ CMD_SET_AUTOREPLACE
set an autoreplace entry
@ CMD_AUTOREPLACE_VEHICLE
replace/renew a vehicle while it is in a depot
Types related to engines.
Types of a group.
Types related to vehicles.