# tilearea_type.h File Reference

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 | TileArea
| Represents the covered area of e.g. 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...
## Defines
#define | TILE_AREA_LOOP(var, ta) for (OrthogonalTileIterator var(ta); var != INVALID_TILE; ++var)
| A loop which iterates over the tiles of a TileArea.

## Detailed Description

Type for storing the 'area' of something uses on the map.

Definition in file tilearea_type.h.

## Define Documentation

#define TILE_AREA_LOOP | ( | var,
|  | ta |  | ) | for (OrthogonalTileIterator var(ta); var != INVALID_TILE; ++var)

A loop which iterates over the tiles of a TileArea.

Parameters:

  | 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 151 of file tilearea_type.h.

Referenced by AITileList::AddRectangle(), AITileList_IndustryAccepting::AITileList_IndustryAccepting(), AITileList_IndustryProducing::AITileList_IndustryProducing(), AITileList_StationType::AITileList_StationType(), BuildObject(), CcRoadStop(), CheckFlatLand(), CheckFlatLandRailStation(), CheckFlatLandRoadStop(), CheckIfCanLevelIndustryPlatform(), CmdBuildCanal(), CmdBuildObject(), CmdBuildRoadStop(), CmdConvertRail(), CmdPlantTree(), CmdRemoveRoadStop(), CommonRaiseLowerBigLand(), DeallocateSpecFromStation(), FindStationsNearby(), FloodVehicles(), GenerateDesertArea(), GenerateRockyArea(), AIIndustry::GetDockLocation(), AIIndustry::GetHeliportLocation(), AIOrder::GetOrderDestination(), GetProductionAroundTiles(), GetStationAround(), SmallMapWindow::GetTileColours(), IncreaseAnimationStage(), MoveBuoysToWaypoints(), ReallyClearObjectTile(), RemoveAirport(), RemoveFromRailBaseStation(), RemoveRailStation(), AITileList::RemoveRectangle(), StationRect::ScanForStationTiles(), and TriggerObjectAnimation().