OpenTTD
|
Type for storing the 'area' of something uses on the map. More...
#include "map_func.h"
Go to the source code of this file.
Data Structures | |
struct | OrthogonalTileArea |
Represents the covered area of e.g. More... | |
struct | DiagonalTileArea |
Represents a diagonal tile area. More... | |
class | TileIterator |
Base class for tile iterators. More... | |
class | OrthogonalTileIterator |
Iterator to iterate over a tile area (rectangle) of the map. More... | |
class | DiagonalTileIterator |
Iterator to iterate over a diagonal area of the map. More... |
Macros | |
#define | TILE_AREA_LOOP(var, ta) for (OrthogonalTileIterator var(ta); var != INVALID_TILE; ++var) |
A loop which iterates over the tiles of a TileArea. |
Typedefs | |
typedef OrthogonalTileArea | TileArea |
Shorthand for the much more common orthogonal tile area. |
Type for storing the 'area' of something uses on the map.
Definition in file tilearea_type.h.
#define TILE_AREA_LOOP | ( | var, | |
ta | |||
) | for (OrthogonalTileIterator var(ta); var != INVALID_TILE; ++var) |
A loop which iterates over the tiles of a TileArea.
var | The name of the variable which contains the current tile. This variable will be allocated in this for of this loop. |
ta | The tile area to search over. |
Definition at line 232 of file tilearea_type.h.
Referenced by BuildObject(), CcRoadStop(), CheckFlatLand(), CheckFlatLandRailStation(), CheckFlatLandRoadStop(), CheckIfCanLevelIndustryPlatform(), CheckIfFarEnoughFromConflictingIndustry(), ChopLumberMillTrees(), CmdBuildCanal(), CmdBuildObject(), CmdBuildRailStation(), CmdBuildRoadStop(), CmdPlantTree(), CmdRemoveRoadStop(), CommonRaiseLowerBigLand(), DeallocateSpecFromStation(), FindStationsNearby(), FloodVehicles(), GenerateDesertArea(), GenerateRockyArea(), GetProductionAroundTiles(), GetStationAround(), SmallMapWindow::GetTileColours(), IncreaseAnimationStage(), IsCloseToTown(), MoveBuoysToWaypoints(), ReallyClearObjectTile(), RemoveAirport(), RemoveFromRailBaseStation(), RemoveRailStation(), StationRect::ScanForStationTiles(), TriggerIndustry(), TriggerObjectAnimation(), TriggerStationRandomisation(), TriggerWatchedCargoCallbacks(), UpdateTownCargoes(), and UpdateTownCargoTotal().
typedef OrthogonalTileArea TileArea |
Shorthand for the much more common orthogonal tile area.
Definition at line 96 of file tilearea_type.h.