12 #ifndef SUBSIDY_FUNC_H 13 #define SUBSIDY_FUNC_H 24 void DeleteSubsidy(
struct Subsidy *s);
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode)
Setup the string parameters for printing the subsidy at the screen, and compute the news reference fo...
void RebuildSubsidisedSourceAndDestinationCache()
Perform a full rebuild of the subsidies cache.
Types related to cargoes...
Types related to stations.
void DeleteSubsidyWith(SourceType type, SourceID index)
Delete the subsidies associated with a given cargo source type and id.
Struct about subsidies, offered and awarded.
SourceType
Types of cargo source and destination.
uint16 SourceID
Contains either industry ID, town ID or company ID (or INVALID_SOURCE)
All geometry types in OpenTTD.
Types related to companies.
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...
byte CargoID
Cargo slots to indicate a cargo type within a game.
Owner
Enum for all companies/owners.