OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
90 extern std::vector<ClearedObjectArea> _cleared_object_areas;
byte colour
Colour of the object, for display purpose.
uint32 TileIndex
The index/ID of a Tile.
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 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.
int32 Date
The type to store our dates in.
An object, such as transmitter, on the map.
Represents the covered area of e.g.
ObjectType type
Type of the object.
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.
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.
static uint16 counts[NUM_OBJECTS]
Number of objects per type ingame.
Date build_date
Date of construction.
Town * town
Town the object is built in.
static uint16 GetTypeCount(ObjectType type)
Get the count of objects for this type.