OpenTTD Source 20261112-master-gbcbec5e63f
tilearea_type.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef TILEAREA_TYPE_H
11#define TILEAREA_TYPE_H
12
13#include "tile_type.h"
14#include "tilearea_orthogonal.h"
15#include "tilearea_diagonal.h"
16#include "tilearea_wrapper.h"
17
20
23
25
26#endif /* TILEAREA_TYPE_H */
Tile area wrapper.
Tile iterator wrapper.
Types related to tiles.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
Definition tile_type.h:92
Type for storing and iterating a diagonal tile area.
Type for storing and iterating orthogonal tile areas.
OrthoDiagonalTileArea CreateOrthoDiagonalArea(TileIndex corner1, TileIndex corner2, bool diagonal)
Create an Orthogonal/Diagonal tile area wrapper.
Definition tilearea.cpp:23
TileAreaWrapper< OrthoDiagonalTileIterator, OrthogonalTileArea, DiagonalTileArea > OrthoDiagonalTileArea
Wrapper for orthogonal or diagonal tile areas.
TileIteratorWrapper< OrthogonalTileArea::iterator, DiagonalTileArea::iterator > OrthoDiagonalTileIterator
Wrapper for orthogonal or diagonal tile iterators.
Tile area and iterator wrappers to allow mixing different tile area types.