90extern std::vector<ClearedObjectArea> _cleared_object_areas;
ClearedObjectArea * FindClearedObject(TileIndex tile)
Find the entry in _cleared_object_areas which occupies a certain tile.
Types related to object tiles.
uint16_t ObjectType
Types of objects.
static const ObjectType NUM_OBJECTS
Number of supported objects overall.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
Keeps track of removed objects during execution/testruns of commands.
TileArea area
The area of the object.
TileIndex first_tile
The first tile being cleared, which then causes the whole object to be cleared.
An object, such as transmitter, on the map.
ObjectType type
Type of the object.
Town * town
Town the object is built in.
static uint16_t GetTypeCount(ObjectType type)
Get the count of objects for this type.
Object()
Make sure the object isn't zeroed.
static Object * GetByTile(TileIndex tile)
Get the object associated with a tile.
static void IncTypeCount(ObjectType type)
Increment the count of objects for this type.
TimerGameCalendar::Date build_date
Date of construction.
static uint16_t counts[NUM_OBJECTS]
Number of objects per type ingame.
uint8_t view
The view setting for this object.
TileArea location
Location of the object.
uint8_t colour
Colour of the object, for display purpose.
static void DecTypeCount(ObjectType type)
Decrement the count of objects for this type.
static void ResetTypeCounts()
Resets object counts.
~Object()
Make sure the right destructor is called as well!
Represents the covered area of e.g.
Base class for all PoolItems.
Base class for all pools.
Templated helper to make a type-safe 'typedef' representing a single POD value.
Type for storing the 'area' of something uses on the map.
Definition of the game-calendar-timer.