newgrf_town.cpp File Reference

#include "stdafx.h"
#include "openttd.h"
#include "settings_type.h"
#include "debug.h"
#include "core/bitmath_func.hpp"
#include "core/math_func.hpp"
#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.


Detailed Description

Definition in file newgrf_town.cpp.


Function Documentation

uint32 TownGetVariable ( byte  variable,
byte  parameter,
bool *  available,
const Town *  t 
)

This function implements the town variables that newGRF defines.

Parameters:
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
Returns:
the value stored in the corresponding variable

Definition at line 19 of file newgrf_town.cpp.

References ClampToU16(), and GB().

Referenced by HouseGetVariable(), and IndustryGetVariable().


Generated on Mon Sep 22 20:34:23 2008 for openttd by  doxygen 1.5.6