|
OpenTTD Source 20251104-master-g3befbdd52f
|
Private Member Functions | |
| bool | IsInspectable (uint index) const override |
| Is the item with the given index inspectable? | |
| uint | GetParent (uint index) const override |
| Get the parent "window_number" of a given instance. | |
| const void * | GetInstance (uint) const override |
| Get the instance given an index. | |
| const void * | GetSpec (uint index) const override |
| Get (NewGRF) specs given an index. | |
| std::string | GetName (uint index) const override |
| Get the name of this item. | |
| uint32_t | GetGRFID (uint index) const override |
| Get the GRFID of the file that includes this item. | |
| std::span< const BadgeID > | GetBadges (uint index) const override |
| Get the list of badges of this item. | |
| uint | Resolve (uint index, uint var, uint32_t param, bool &avail) const override |
Additional Inherited Members | |
Public Member Functions inherited from NIHelper | |
| virtual | ~NIHelper ()=default |
| Silence a warning. | |
| virtual uint | Resolve (uint index, uint var, uint param, bool &avail) const =0 |
| Resolve (action2) variable for a given index. | |
| virtual bool | PSAWithParameter () const |
| Used to decide if the PSA needs a parameter or not. | |
| virtual const std::span< int32_t > | GetPSA (uint index, uint32_t grfid) const |
| Gets the span containing the persistent storage. | |
Definition at line 698 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Get the list of badges of this item.
| index | index to check. |
Implements NIHelper.
Definition at line 705 of file newgrf_debug_data.h.
References IsInspectable().
|
inlineoverrideprivatevirtual |
Get the GRFID of the file that includes this item.
| index | index to check. |
Implements NIHelper.
Definition at line 704 of file newgrf_debug_data.h.
References IsInspectable().
|
inlineoverrideprivatevirtual |
Get the instance given an index.
| index | the index to get the instance for. |
Implements NIHelper.
Definition at line 701 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Get the name of this item.
| index | the index to get the name for. |
Implements NIHelper.
Definition at line 703 of file newgrf_debug_data.h.
References GetStationIndex(), and GetString().
|
inlineoverrideprivatevirtual |
Get the parent "window_number" of a given instance.
| index | the instance to get the parent for. |
Implements NIHelper.
Definition at line 700 of file newgrf_debug_data.h.
References BaseStation::GetByTile(), GetInspectWindowNumber(), GSF_FAKE_TOWNS, and Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem< Tpool >::index.
|
inlineoverrideprivatevirtual |
Get (NewGRF) specs given an index.
| index | the index to get the specs for for. |
Implements NIHelper.
Definition at line 702 of file newgrf_debug_data.h.
|
inlineoverrideprivatevirtual |
Is the item with the given index inspectable?
| index | the index to check. |
Implements NIHelper.
Definition at line 699 of file newgrf_debug_data.h.
Referenced by GetBadges(), and GetGRFID().
|
inlineoverrideprivate |
Definition at line 707 of file newgrf_debug_data.h.