diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-03-26 00:07:20 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-27 06:58:48 +0000 |
commit | 8890436af1e9dbff7279dd3cf4c3659a3ad973d6 (patch) | |
tree | 72f5d48e8ffff58e43e7dfd0933f0908f09c759a /src/group.h | |
parent | a393c9469545f4bd1e6e2fd1a593d35bb98f16ca (diff) | |
download | openttd-8890436af1e9dbff7279dd3cf4c3659a3ad973d6.tar.xz |
Add #6189: Groups now count the total number of vehicles in subgroups (3298)
Diffstat (limited to 'src/group.h')
-rw-r--r-- | src/group.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/group.h b/src/group.h index ea4f7e130..8bb8d794f 100644 --- a/src/group.h +++ b/src/group.h @@ -100,6 +100,9 @@ static inline bool IsAllGroupID(GroupID id_g) uint GetGroupNumEngines(CompanyID company, GroupID id_g, EngineID id_e); +uint GetGroupNumVehicle(CompanyID company, GroupID id_g, VehicleType type); +uint GetGroupNumProfitVehicle(CompanyID company, GroupID id_g, VehicleType type); +Money GetGroupProfitLastYear(CompanyID company, GroupID id_g, VehicleType type); void SetTrainGroupID(Train *v, GroupID grp); void UpdateTrainGroupID(Train *v); |