32 uint32
GetVariable(byte variable, uint32 parameter,
bool *available)
const;
33 void StorePSA(uint pos, int32 value);
59 template <
typename Tspec,
typename T
id, T
id Tmax>
68 template <
typename Tspec,
typename T
id, T
id Tmax>
91 if (type >= NEW_AIRPORT_OFFSET && !as->
enabled) {
93 if (subst_id == AT_INVALID)
return as;
115 if (!this->
enabled)
return false;
116 if (_cur_year < this->
min_year)
return false;
140 if (as->
enabled) AirportClass::Assign(as);
145 void AirportOverrideManager::SetEntitySpec(
AirportSpec *as)
150 grfmsg(1,
"Airport.SetEntitySpec: Too many airports allocated. Ignoring.");
163 overridden_as->
enabled =
false;
165 grfid_overrides[i] = 0;
172 case 0x40:
return this->
layout;
175 if (this->
st == NULL) {
188 return this->
st->GetNewGRFVariable(this->
ro, variable, parameter, available);
214 if (this->
st == NULL)
return;
218 if (value == 0)
return;
239 CallbackID callback, uint32 param1, uint32 param2)
240 :
ResolverObject(
AirportSpec::Get(airport_id)->grf_prop.grffile, callback, param1, param2), airport_scope(*this, tile, st, airport_id, layout)
267 return group->GetResult();
273 return object.ResolveCallback();
286 uint16 cb_res =
object.ResolveCallback();
287 if (cb_res ==
CALLBACK_FAILED || cb_res == 0x400)
return STR_UNDEFINED;
288 if (cb_res > 0x400) {
290 return STR_UNDEFINED;