38 :
ScopeResolver(ro), st(st), airport_id(airport_id), layout(layout), tile(tile)
43 uint32
GetVariable(byte variable, uint32 parameter,
bool *available)
const;
44 void StorePSA(uint pos, int32 value);
70 template <
typename Tspec,
typename T
id, T
id Tmax>
79 template <
typename Tspec,
typename T
id, T
id Tmax>
102 if (type >= NEW_AIRPORT_OFFSET && !as->
enabled) {
104 if (subst_id == AT_INVALID)
return as;
126 if (!this->
enabled)
return false;
127 if (_cur_year < this->
min_year)
return false;
151 if (as->
enabled) AirportClass::Assign(as);
156 void AirportOverrideManager::SetEntitySpec(
AirportSpec *as)
161 grfmsg(1,
"Airport.SetEntitySpec: Too many airports allocated. Ignoring.");
174 overridden_as->
enabled =
false;
176 grfid_overrides[i] = 0;
183 case 0x40:
return this->
layout;
186 if (this->
st == NULL) {
199 return this->
st->GetNewGRFVariable(this->
ro, variable, parameter, available);
225 if (this->
st == NULL)
return;
229 if (value == 0)
return;
250 CallbackID callback, uint32 param1, uint32 param2)
251 :
ResolverObject(
AirportSpec::Get(airport_id)->grf_prop.grffile, callback, param1, param2), airport_scope(*this, tile, st, airport_id, layout)
262 return group->GetResult();
268 return object.ResolveCallback();
281 uint16 cb_res =
object.ResolveCallback();
282 if (cb_res ==
CALLBACK_FAILED || cb_res == 0x400)
return STR_UNDEFINED;
283 if (cb_res > 0x400) {
285 return STR_UNDEFINED;