Implementation of the town part of NewGRF houses. More...
#include "stdafx.h"#include "debug.h"#include "town.h"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. | |
Implementation of the town part of NewGRF houses.
Definition in file newgrf_town.cpp.
| 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 24 of file newgrf_town.cpp.
References _settings_game, ClampToU16(), DEBUG, GameSettings::economy, GB(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, EconomySettings::larger_towns, and Town::ratings.
Referenced by HouseGetVariable(), IndustryGetVariable(), ObjectGetVariable(), and NIHTown::Resolve().
1.7.1