OpenTTD Source: SpotData Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
SpotData Struct Reference

Used as the user_data for FindFurthestFromWater. More...

## Data Fields
TileIndex | tile
| holds the tile that was found
uint | max_dist
| holds the distance that tile is from the water
TownLayout | layout
| tells us what kind of town we're building

## Detailed Description

Used as the user_data for FindFurthestFromWater.

Definition at line 2279 of file town_cmd.cpp.

## Field Documentation

## ◆ layout

TownLayout SpotData::layout

tells us what kind of town we're building

Definition at line 2282 of file town_cmd.cpp.

Referenced by FindFurthestFromWater().

## ◆ max_dist

uint SpotData::max_dist

holds the distance that tile is from the water

Definition at line 2281 of file town_cmd.cpp.

Referenced by FindFurthestFromWater().

## ◆ tile

TileIndex SpotData::tile

holds the tile that was found

Definition at line 2280 of file town_cmd.cpp.

Referenced by FindFurthestFromWater(), and FindNearestGoodCoastalTownSpot().

The documentation for this struct was generated from the following file:

- src/town_cmd.cpp