|
| AirportTileOverrideManager (uint16_t offset, uint16_t maximum, uint16_t invalid) |
|
void | SetEntitySpec (const AirportTileSpec *ats) |
|
| OverrideManagerBase (uint16_t offset, uint16_t maximum, uint16_t invalid) |
| Constructor of generic class.
|
|
void | ResetOverride () |
| Resets the override, which is used while initializing game.
|
|
void | ResetMapping () |
| Resets the mapping, which is used while initializing game.
|
|
void | Add (uint16_t local_id, uint32_t grfid, uint entity_type) |
| Since the entity IDs defined by the GRF file does not necessarily correlate to those used by the game, the IDs used for overriding old entities must be translated when the entity spec is set.
|
|
virtual uint16_t | AddEntityID (uint16_t grf_local_id, uint32_t grfid, uint16_t substitute_id) |
| Reserves a place in the mapping array for an entity to be installed.
|
|
uint32_t | GetGRFID (uint16_t entity_id) const |
| Gives the GRFID of the file the entity belongs to.
|
|
uint16_t | GetSubstituteID (uint16_t entity_id) const |
| Gives the substitute of the entity, as specified by the grf file.
|
|
virtual uint16_t | GetID (uint16_t grf_local_id, uint32_t grfid) const |
| Return the ID (if ever available) of a previously inserted entity.
|
|
uint16_t | GetMaxMapping () const |
|
uint16_t | GetMaxOffset () const |
|
Definition at line 267 of file newgrf_commons.h.
◆ AirportTileOverrideManager()
AirportTileOverrideManager::AirportTileOverrideManager |
( |
uint16_t |
offset, |
|
|
uint16_t |
maximum, |
|
|
uint16_t |
invalid |
|
) |
| |
|
inline |
◆ CheckValidNewID()
bool AirportTileOverrideManager::CheckValidNewID |
( |
uint16_t |
testid | ) |
|
|
inlineoverrideprotectedvirtual |
◆ SetEntitySpec()
void AirportTileOverrideManager::SetEntitySpec |
( |
const AirportTileSpec * |
ats | ) |
|
The documentation for this class was generated from the following files: