OpenTTD Source: src/autoreplace_gui.h Source File

OpenTTD Source 15.3

autoreplace_gui.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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef AUTOREPLACE_GUI_H
11#define AUTOREPLACE_GUI_H
12
13#include "engine_type.h"
14#include "group_type.h"
15#include "vehicle_type.h"
16
17void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type);
18void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g);
19void ShowReplaceGroupVehicleWindow(GroupID group, VehicleType veh);
20
21#endif /* AUTOREPLACE_GUI_H */
InvalidateAutoreplaceWindow
void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
Rebuild the left autoreplace list if an engine is removed or added.
Definition autoreplace_gui.cpp:54
AddRemoveEngineFromAutoreplaceAndBuildWindows
void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type)
When an engine is made buildable or is removed from being buildable, add/remove it from the build/aut...
Definition autoreplace_gui.cpp:68
ShowReplaceGroupVehicleWindow
void ShowReplaceGroupVehicleWindow(GroupID group, VehicleType veh)
Show the autoreplace configuration window for a particular group.
Definition autoreplace_gui.cpp:882
engine_type.h
Types related to engines.
group_type.h
Types of a group.
PoolID< uint16_t, struct EngineIDTag, 64000, 0xFFFF >
vehicle_type.h
Types related to vehicles.
VehicleType
VehicleType
Available vehicle types.
Definition vehicle_type.h:22