83 #define FOR_ALL_OBJECTS_FROM(var, start) FOR_ALL_ITEMS_FROM(Object, object_index, var, start) 84 #define FOR_ALL_OBJECTS(var) FOR_ALL_OBJECTS_FROM(var, 0) TileIndex first_tile
The first tile being cleared, which then causes the whole object to be cleared.
static const ObjectType NUM_OBJECTS
Number of supported objects overall.
Town * town
Town the object is built in.
Date build_date
Date of construction.
byte colour
Colour of the object, for display purpose.
Object()
Make sure the object isn't zeroed.
Simple vector template class.
Defintion of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
Types related to object tiles.
static uint16 counts[NUM_OBJECTS]
Number of objects per type ingame.
~Object()
Make sure the right destructor is called as well!
Keeps track of removed objects during execution/testruns of commands.
TileArea area
The area of the object.
An object, such as transmitter, on the map.
Represents the covered area of e.g.
uint16 ObjectType
Types of objects.
ClearedObjectArea * FindClearedObject(TileIndex tile)
Find the entry in _cleared_object_areas which occupies a certain tile.
Base class for all PoolItems.
Base class for all pools.
static uint16 GetTypeCount(ObjectType type)
Get the count of objects for this type.
uint32 TileIndex
The index/ID of a Tile.
static void ResetTypeCounts()
Resets object counts.
static void IncTypeCount(ObjectType type)
Increment the count of objects for this type.
TileArea location
Location of the object.
ObjectType type
Type of the object.
Type for storing the 'area' of something uses on the map.
static Object * GetByTile(TileIndex tile)
Get the object associated with a tile.
Types related to the dates in OpenTTD.
int32 Date
The type to store our dates in.
static void DecTypeCount(ObjectType type)
Decrement the count of objects for this type.
byte view
The view setting for this object.