22 #include "table/strings.h"
43 return &AirportTileSpec::tiles[gfx];
61 memset(&AirportTileSpec::tiles, 0,
sizeof(AirportTileSpec::tiles));
68 void AirportTileOverrideManager::SetEntitySpec(
const AirportTileSpec *airpts)
73 grfmsg(1,
"AirportTile.SetEntitySpec: Too many airport tiles allocated. Ignoring.");
77 memcpy(&AirportTileSpec::tiles[airpt_id], airpts,
sizeof(*airpts));
86 overridden_airpts->
enabled =
false;
88 grfid_overrides[i] = 0;
130 if (!st->TileBelongsToAirport(tile)) {
140 return 0xFF << 8 | gfx;
160 return 0xFF << 8 | ats->
grf_prop.subst_id;
165 assert(this->
st != NULL);
188 if (this->
st->TileBelongsToAirport(tile)) {
198 DEBUG(grf, 1,
"Unhandled airport tile variable 0x%X", variable);
219 CallbackID callback, uint32 callback_param1, uint32 callback_param2)
220 :
ResolverObject(ats->grf_prop.
grffile, callback, callback_param1, callback_param2), tiles_scope(*this, ats, tile, st)
243 return object.ResolveCallback();
255 DrawWaterClassGround(ti);
267 bool draw_old_one =
true;
279 if (group == NULL || group->type != SGT_TILELAYOUT) {
300 if (ats == NULL)
return;
318 if (st->TileBelongsToAirport(tile)) AirportTileAnimationTrigger(st, tile, trigger, cargo_type);