subsidy_func.h File Reference

Functions related to subsidies. More...

#include "core/geometry_type.hpp"
#include "station_type.h"
#include "company_type.h"
#include "cargo_type.h"

Go to the source code of this file.

Functions

Pair SetupSubsidyDecodeParam (const struct Subsidy *s, bool mode)
void DeleteSubsidyWith (SourceType type, SourceID index)
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 RebuildSubsidisedSourceAndDestinationCache ()
void DeleteSubsidy (struct Subsidy *s)

Detailed Description

Functions related to subsidies.

Definition in file subsidy_func.h.


Function Documentation

bool CheckSubsidised ( CargoID  cargo_type,
CompanyID  company,
SourceType  src_type,
SourceID  src,
const Station st 
)

Generated on Fri May 27 04:20:06 2011 for OpenTTD by  doxygen 1.6.1