Go to the source code of this file.
Functions | |
uint32 | TownGetVariable (byte variable, byte parameter, bool *available, const Town *t) |
This function implements the town variables that newGRF defines. |
Definition in file newgrf_town.h.
uint32 TownGetVariable | ( | byte | variable, | |
byte | parameter, | |||
bool * | available, | |||
const Town * | t | |||
) |
This function implements the town variables that newGRF defines.
variable | that is queried | |
parameter | unused | |
available | will return false if ever the variable asked for does not exist | |
t | is of course the town we are inquiring |
Definition at line 22 of file newgrf_town.cpp.
References _settings_game, ClampToU16(), GameSettings::economy, GB(), and EconomySettings::larger_towns.
Referenced by HouseGetVariable(), and IndustryGetVariable().