OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #ifndef SUBSIDY_FUNC_H
11 #define SUBSIDY_FUNC_H
22 void DeleteSubsidy(
struct Subsidy *s);
void RebuildSubsidisedSourceAndDestinationCache()
Perform a full rebuild of the subsidies cache.
Owner
Enum for all companies/owners.
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.
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 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.