MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetObjectType

Function GetObjectType

src/object_cmd.cpp:66–70  ·  view source on GitHub ↗

* Gets the ObjectType of the given object tile * @param t the tile to get the type from. * @pre IsTileType(t, MP_OBJECT) * @return the type. */

Source from the content-addressed store, hash-verified

64 * @return the type.
65 */
66ObjectType GetObjectType(Tile t)
67{
68 assert(IsTileType(t, MP_OBJECT));
69 return Object::GetByTile(t)->type;
70}
71
72/** Initialize/reset the objects. */
73void InitializeObjects()

Callers 7

DrawTile_ObjectFunction · 0.85
GetFoundation_ObjectFunction · 0.85
ChangeTileOwner_ObjectFunction · 0.85
TerraformTile_ObjectFunction · 0.85
GetByTileMethod · 0.85
IsObjectTypeFunction · 0.85
IsObjectTypeTileFunction · 0.85

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected