Add: AI function to get current usage of a group.

This commit is contained in:
Peter Nelson
2019-02-13 22:48:46 +00:00
committed by Niels Martin Hansen
parent e0c2ad1b65
commit 5d3ccae6c5
3 changed files with 30 additions and 0 deletions

View File

@@ -205,6 +205,14 @@ public:
* @return The current profit the group had last year.
*/
static Money GetProfitLastYear(GroupID group_id);
/**
* Get the current vehicle usage of a group.
* @param group_id The group to get the current usage of.
* @pre IsValidGroup(group_id).
* @return The current usage of the group.
*/
static uint32 GetCurrentUsage(GroupID group_id);
};
#endif /* SCRIPT_GROUP_HPP */