#include "vehicle_type.h"
Go to the source code of this file.
Functions | |
void | AddRemoveEngineFromAutoreplaceAndBuildWindows (VehicleType type) |
When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists. | |
void | InvalidateAutoreplaceWindow (EngineID e, GroupID id_g) |
Rebuild the left autoreplace list if an engine is removed or added. | |
void | ShowReplaceGroupVehicleWindow (GroupID group, VehicleType veh) |
Definition in file autoreplace_gui.h.
void AddRemoveEngineFromAutoreplaceAndBuildWindows | ( | VehicleType | type | ) |
When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists.
type | The type of engine |
Definition at line 101 of file autoreplace_gui.cpp.
void InvalidateAutoreplaceWindow | ( | EngineID | e, | |
GroupID | id_g | |||
) |
Rebuild the left autoreplace list if an engine is removed or added.
e | Engine to check if it is removed or added | |
id_g | The group the engine belongs to Note: this function only works if it is called either
|
Definition at line 80 of file autoreplace_gui.cpp.
References GetGroupNumEngines().
Referenced by CmdBuildAircraft(), CmdBuildRailVehicle(), CmdBuildRailWagon(), CmdBuildRoadVeh(), CmdBuildShip(), and CmdSetAutoReplace().