|
OpenTTD Source
14.0-beta3
|
Go to the documentation of this file.
90 extern std::vector<ClearedObjectArea> _cleared_object_areas;
byte colour
Colour of the object, for display purpose.
static uint16_t counts[NUM_OBJECTS]
Number of objects per type ingame.
TileArea location
Location of the object.
static Object * GetByTile(TileIndex tile)
Get the object associated with a tile.
static const ObjectType NUM_OBJECTS
Number of supported objects overall.
static void IncTypeCount(ObjectType type)
Increment the count of objects for this type.
Object()
Make sure the object isn't zeroed.
uint16_t ObjectType
Types of objects.
TileIndex first_tile
The first tile being cleared, which then causes the whole object to be cleared.
byte view
The view setting for this object.
An object, such as transmitter, on the map.
Represents the covered area of e.g.
ObjectType type
Type of the object.
static uint16_t GetTypeCount(ObjectType type)
Get the count of objects for this type.
Base class for all pools.
ClearedObjectArea * FindClearedObject(TileIndex tile)
Find the entry in _cleared_object_areas which occupies a certain tile.
TileArea area
The area of the object.
static void DecTypeCount(ObjectType type)
Decrement the count of objects for this type.
static void ResetTypeCounts()
Resets object counts.
TimerGameCalendar::Date build_date
Date of construction.
Keeps track of removed objects during execution/testruns of commands.
~Object()
Make sure the right destructor is called as well!
Base class for all PoolItems.
Town * town
Town the object is built in.