|
OpenTTD AI API
14.0-beta3
|
Class that handles all object-type related functions. More...
Static Public Member Functions | |
| static bool | IsValidObjectType (ObjectType object_type) |
| Checks whether the given object-type is valid. More... | |
| static std::optional< std::string > | GetName (ObjectType object_type) |
| Get the name of an object-type. More... | |
| static SQInteger | GetViews (ObjectType object_type) |
| Get the number of views for an object-type. More... | |
| static bool | BuildObject (ObjectType object_type, SQInteger view, TileIndex tile) |
| Build an object of the specified type. More... | |
| static ObjectType | ResolveNewGRFID (SQInteger grfid, SQInteger grf_local_id) |
| Get a specific object-type from a grf. More... | |
Class that handles all object-type related functions.
|
static |
Build an object of the specified type.
| object_type | The type of the object to build. |
| view | The view for teh object. |
| tile | The tile to build the object on. |
|
static |
Get the name of an object-type.
| object_type | The type to get the name for. |
|
static |
Get the number of views for an object-type.
| object_type | The type to get the number of views for. |
|
static |
Checks whether the given object-type is valid.
| object_type | The type to check. |
|
static |
Get a specific object-type from a grf.
| grfid | The ID of the NewGRF. |
| grf_local_id | The ID of the object, local to the NewGRF. |
1.8.17