OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef SUBSIDY_FUNC_H
11 #define SUBSIDY_FUNC_H
void RebuildSubsidisedSourceAndDestinationCache()
Perform a full rebuild of the subsidies cache.
Owner
Enum for all companies/owners.
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...
Struct about subsidies, offered and awarded.
uint16 SourceID
Contains either industry ID, town ID or company ID (or INVALID_SOURCE)
SourceType
Types of cargo source and destination.
void DeleteSubsidyWith(SourceType type, SourceID index)
Delete the subsidies associated with a given cargo source type and id.
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.
SubsidyDecodeParamType
Types of subsidy news messages, which determine how the date is printed and whether to use singular o...