OpenTTD Source 20260820-master-g39da062c0c
newgrf_town.cpp File Reference

Implementation of the town part of NewGRF houses. More...

#include "stdafx.h"
#include "debug.h"
#include "town.h"
#include "newgrf_town.h"
#include "timer/timer_game_tick.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

template<typename Tproj>
static uint16_t TownHistoryHelper (const Town *t, CargoLabel label, uint period, Tproj proj)
static uint32_t GetNearbyTileInformation (uint8_t parameter, TileIndex tile, bool grf_version8)
 Get information about a nearby tile.

Detailed Description

Implementation of the town part of NewGRF houses.

Definition in file newgrf_town.cpp.

Function Documentation

◆ GetNearbyTileInformation()

uint32_t GetNearbyTileInformation ( uint8_t parameter,
TileIndex tile,
bool grf_version8 )
static

Get information about a nearby tile.

Parameters
parameterPair of coordinates from callback.
tileTileIndex from which the callback was initiated.
grf_version8True, if we are dealing with a new NewGRF which uses GRF version >= 8.
Returns
a construction of bits obeying the newgrf format.

Definition at line 34 of file newgrf_town.cpp.

References GetNearbyTile(), and GetNearbyTileInformation().

Referenced by GetNearbyTileInformation().

◆ TownHistoryHelper()

template<typename Tproj>
uint16_t TownHistoryHelper ( const Town * t,
CargoLabel label,
uint period,
Tproj proj )
static

Definition at line 19 of file newgrf_town.cpp.