AirportTileSpec Struct Reference

Defines the data structure of each indivudual tile of an airport. More...

#include <newgrf_airporttiles.h>

Static Public Member Functions

static const AirportTileSpecGet (StationGfx gfx)
 Retrieve airport tile spec for the given airport tile.
static const AirportTileSpecGetByTile (TileIndex tile)
 Retrieve airport tile spec for the given airport tile.
static void ResetAirportTiles ()
 This function initializes the tile array of AirportTileSpec.

Data Fields

AnimationInfo animation
 Information about the animation.
StringID name
 Tile Subname string, land information on this tile will give you "AirportName (TileSubname)".
uint8 callback_mask
 Bitmask telling which grf callback is set.
uint8 animation_special_flags
 Extra flags to influence the animation.
bool enabled
 entity still available (by default true). newgrf can disable it, though
GRFFileProps grf_prop
 properties related the the grf file

Static Private Attributes

static AirportTileSpec tiles [NUM_AIRPORTTILES]

Friends

void AirportTileOverrideManager::SetEntitySpec (const AirportTileSpec *airpts)

Detailed Description

Defines the data structure of each indivudual tile of an airport.

Definition at line 23 of file newgrf_airporttiles.h.


Member Function Documentation

const AirportTileSpec * AirportTileSpec::Get ( StationGfx  gfx  )  [static]

Retrieve airport tile spec for the given airport tile.

Parameters:
gfx index of airport tile
Returns:
A pointer to the corresponding AirportTileSpec

Definition at line 38 of file newgrf_airporttiles.cpp.

References lengthof, and MAX_UVALUE.

Referenced by CmdBuildAirport(), GetAirportTileIDAtOffset(), GetByTile(), NIHAirportTile::GetSpec(), GetTranslatedAirportTileID(), and NIHAirportTile::IsInspectable().

const AirportTileSpec * AirportTileSpec::GetByTile ( TileIndex  tile  )  [static]

Retrieve airport tile spec for the given airport tile.

Parameters:
tile The airport tile.
Returns:
A pointer to the corresponding AirportTileSpec.

Definition at line 51 of file newgrf_airporttiles.cpp.

References Get(), and GetAirportGfx().

Referenced by GetAirportTileTypeResolver().


The documentation for this struct was generated from the following files:

Generated on Mon May 9 05:19:36 2011 for OpenTTD by  doxygen 1.6.1