Add: AI function to get current usage of a group.
This commit is contained in:

committed by
Niels Martin Hansen

parent
e0c2ad1b65
commit
5d3ccae6c5
@@ -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 */
|
||||
|
Reference in New Issue
Block a user