Fix: CmdSetAutoReplace didn't validate group type and engine type match (#9950)
[openttd-github.git] / src / group_gui.h
blobd42704663e6859304ccd6ed5b6ac8d292a8d28be
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 */
8 /** @file group_gui.h Functions/definitions that have something to do with groups. */
10 #ifndef GROUP_GUI_H
11 #define GROUP_GUI_H
13 #include "company_type.h"
14 #include "vehicle_type.h"
16 void ShowCompanyGroup(CompanyID company, VehicleType veh, GroupID group = INVALID_GROUP, bool need_existing_window = false);
17 void ShowCompanyGroupForVehicle(const Vehicle *v);
18 void DeleteGroupHighlightOfVehicle(const Vehicle *v);
20 #endif /* GROUP_GUI_H */