|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
#include <group.h>
Public Member Functions | |
| Group (GroupID index, CompanyID owner=INVALID_OWNER, VehicleType vehicle_type=VEH_INVALID) | |
Data Fields | |
| std::string | name {} |
| Group Name. | |
| Owner | owner = INVALID_OWNER |
| Group Owner. | |
| VehicleType | vehicle_type = VEH_INVALID |
| Vehicle type of the group. | |
| GroupFlags | flags {} |
| Group flags. | |
| Livery | livery {} |
| Custom colour scheme for vehicles in this group. | |
| GroupStatistics | statistics {} |
| NOSAVE: Statistics and caches on the vehicles in the group. | |
| FlatSet< GroupID > | children |
| NOSAVE: child groups belonging to this group. | |
| bool | folded = false |
| NOSAVE: Is this group folded in the group view? | |
| GroupID | parent = GroupID::Invalid() |
| Parent group. | |
| uint16_t | number = 0 |
| Per-company group number. | |
|
inline |
| FlatSet<GroupID> Group::children |
NOSAVE: child groups belonging to this group.
Definition at line 83 of file group.h.
Referenced by CmdCreateGroup(), CmdDeleteGroup(), GetGroupNumEngines(), GetGroupNumVehicle(), GetGroupNumVehicleMinAge(), GetGroupProfitLastYearMinAge(), GuiGroupListAddChildren(), PropagateChildLivery(), SetGroupFlag(), and UpdateGroupChildren().
| GroupFlags Group::flags {} |
Group flags.
Definition at line 79 of file group.h.
Referenced by CmdAutoreplaceVehicle(), CmdCreateGroup(), VehicleGroupWindow::DrawWidget(), ReplaceVehicleWindow::OnClick(), VehicleGroupWindow::OnClick(), and SetGroupFlag().
| bool Group::folded = false |
NOSAVE: Is this group folded in the group view?
Definition at line 84 of file group.h.
Referenced by VehicleGroupWindow::DrawWidget(), and GuiGroupListAddChildren().
| Livery Group::livery {} |
Custom colour scheme for vehicles in this group.
Definition at line 80 of file group.h.
Referenced by CmdAlterGroup(), CmdCreateGroup(), CmdSetGroupLivery(), SelectCompanyLiveryWindow::DrawWidget(), GetEngineLivery(), SelectCompanyLiveryWindow::GetWidgetString(), PropagateChildLivery(), and UpdateCompanyGroupLiveries().
| std::string Group::name {} |
Group Name.
Definition at line 75 of file group.h.
Referenced by CmdAlterGroup(), and FormatString().
| uint16_t Group::number = 0 |
Per-company group number.
Definition at line 87 of file group.h.
Referenced by CmdCreateGroup(), CmdDeleteGroup(), and FormatString().
| Owner Group::owner = INVALID_OWNER |
Group Owner.
Definition at line 76 of file group.h.
Referenced by CmdAddVehicleGroup(), CmdAlterGroup(), CmdCreateGroup(), CmdDeleteGroup(), CmdRemoveAllVehiclesGroup(), CmdSetGroupFlag(), CmdSetGroupLivery(), VehicleGroupWindow::DrawWidget(), GroupStatistics::Get(), UpdateCompanyGroupLiveries(), and UpdateGroupChildren().
| GroupID Group::parent = GroupID::Invalid() |
Parent group.
Definition at line 86 of file group.h.
Referenced by CmdAlterGroup(), CmdCreateGroup(), CmdDeleteGroup(), GetEngineLivery(), GRPSChunkHandler::Load(), VehicleGroupWindow::SelectGroup(), and UpdateCompanyGroupLiveries().
| GroupStatistics Group::statistics {} |
NOSAVE: Statistics and caches on the vehicles in the group.
Definition at line 81 of file group.h.
Referenced by GroupStatistics::Get().
| VehicleType Group::vehicle_type = VEH_INVALID |
Vehicle type of the group.
Definition at line 77 of file group.h.
Referenced by CcAddVehicleNewGroup(), CmdAddVehicleGroup(), CmdAlterGroup(), CmdCreateGroup(), CmdDeleteGroup(), CmdRemoveAllVehiclesGroup(), CmdSetGroupFlag(), GroupStatistics::Get(), and UpdateGroupChildren().