OpenTTD Source 20241224-master-gf74b0cf984
|
Types related to object tiles. More...
Go to the source code of this file.
Typedefs | |
typedef uint16_t | ObjectType |
Types of objects. | |
typedef uint32_t | ObjectID |
Unique identifier for an object. | |
Variables | |
static const ObjectType | OBJECT_TRANSMITTER = 0 |
The large antenna. | |
static const ObjectType | OBJECT_LIGHTHOUSE = 1 |
The nice lighthouse. | |
static const ObjectType | OBJECT_STATUE = 2 |
Statue in towns. | |
static const ObjectType | OBJECT_OWNED_LAND = 3 |
Owned land 'flag'. | |
static const ObjectType | OBJECT_HQ = 4 |
HeadQuarter of a player. | |
static const ObjectType | NEW_OBJECT_OFFSET = 5 |
Offset for new objects. | |
static const ObjectType | NUM_OBJECTS = 64000 |
Number of supported objects overall. | |
static const ObjectType | NUM_OBJECTS_PER_GRF = NUM_OBJECTS |
Number of supported objects per NewGRF. | |
static const ObjectType | INVALID_OBJECT_TYPE = 0xFFFF |
An invalid object. | |
static const ObjectID | INVALID_OBJECT = 0xFFFFFFFF |
An invalid object. | |
Types related to object tiles.
Definition in file object_type.h.
typedef uint32_t ObjectID |
Unique identifier for an object.
Definition at line 28 of file object_type.h.
typedef uint16_t ObjectType |
Types of objects.
Definition at line 14 of file object_type.h.
|
static |
An invalid object.
Definition at line 33 of file object_type.h.
Referenced by ObjectScopeResolver::GetVariable().
|
static |
An invalid object.
Definition at line 25 of file object_type.h.
|
static |
Offset for new objects.
Definition at line 22 of file object_type.h.
|
static |
Number of supported objects overall.
Definition at line 23 of file object_type.h.
Referenced by Object::DecTypeCount(), ObjectSpec::Get(), GetCountAndDistanceOfClosestInstance(), Object::GetTypeCount(), and Object::IncTypeCount().
|
static |
Number of supported objects per NewGRF.
Definition at line 24 of file object_type.h.
Referenced by ObjectChangeInfo().
|
static |
HeadQuarter of a player.
Definition at line 20 of file object_type.h.
Referenced by AfterLoadGame(), CmdBuildObject(), and CompanyWindow::OnPlaceObject().
|
static |
The nice lighthouse.
Definition at line 17 of file object_type.h.
Referenced by CmdBuildObject(), ResetObjects(), and TryBuildLightHouse().
|
static |
Owned land 'flag'.
Definition at line 19 of file object_type.h.
Referenced by CmdBuildObject(), and TerraformToolbarWindow::OnPlaceMouseUp().
|
static |
Statue in towns.
Definition at line 18 of file object_type.h.
Referenced by AfterLoadGame(), CmdBuildObject(), CmdDeleteTown(), and TownActionBuildStatue().
|
static |
The large antenna.
Definition at line 16 of file object_type.h.
Referenced by CmdBuildObject(), HasTransmitter(), ResetObjects(), ObjectOverrideManager::SetEntitySpec(), and TryBuildTransmitter().