10 #ifndef SUBSIDY_FUNC_H
11 #define SUBSIDY_FUNC_H
Types related to cargoes...
uint8_t CargoID
Cargo slots to indicate a cargo type within a game.
uint16_t SourceID
Contains either industry ID, town ID or company ID (or INVALID_SOURCE)
SourceType
Types of cargo source and destination.
Types related to companies.
Owner
Enum for all companies/owners.
All geometry types in OpenTTD.
Types related to stations.
Struct about subsidies, offered and awarded.
std::pair< NewsReferenceType, NewsReferenceType > SetupSubsidyDecodeParam(const Subsidy *s, SubsidyDecodeParamType mode, uint parameter_offset)
Setup the string parameters for printing the subsidy at the screen, and compute the news reference fo...
SubsidyDecodeParamType
Types of subsidy news messages, which determine how the date is printed and whether to use singular o...
bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type, SourceID src, const Station *st)
Tests whether given delivery is subsidised and possibly awards the subsidy to delivering company.
void DeleteSubsidyWith(SourceType type, SourceID index)
Delete the subsidies associated with a given cargo source type and id.
void RebuildSubsidisedSourceAndDestinationCache()
Perform a full rebuild of the subsidies cache.