OpenTTD Source 20261112-master-gbcbec5e63f
tilearea.cpp File Reference

Handling of tile areas. More...

#include "stdafx.h"
#include "tilearea_type.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

OrthoDiagonalTileArea CreateOrthoDiagonalArea (TileIndex corner1, TileIndex corner2, bool diagonal)
 Create an Orthogonal/Diagonal tile area wrapper.

Detailed Description

Handling of tile areas.

Definition in file tilearea.cpp.

Function Documentation

◆ CreateOrthoDiagonalArea()

OrthoDiagonalTileArea CreateOrthoDiagonalArea ( TileIndex corner1,
TileIndex corner2,
bool diagonal )

Create an Orthogonal/Diagonal tile area wrapper.

Parameters
corner1Tile from where to begin iterating.
corner2Tile where to end the iterating.
diagonalWhether to create a DiagonalTileArea or OrthogonalTileArea.
Returns
The OrthoDiagonalArea.

Definition at line 23 of file tilearea.cpp.

Referenced by CmdBuildCanal(), CmdBuildObjectArea(), CmdClearArea(), CmdConvertRail(), CmdConvertRoad(), CmdLevelLand(), CmdPlaceHouseArea(), and CmdPlantTree().