|
OpenTTD Source 20251117-master-g7398d2e290
|
Describes a single square water region. More...
#include <water_regions.h>
Public Member Functions | |
| WaterRegionDesc (const int x, const int y) | |
| WaterRegionDesc (const WaterRegionPatchDesc &water_region_patch) | |
| bool | operator== (const WaterRegionDesc &other) const |
Data Fields | |
| int | x |
| The X coordinate of the water region, i.e. X=2 is the 3rd water region along the X-axis. | |
| int | y |
| The Y coordinate of the water region, i.e. Y=2 is the 3rd water region along the Y-axis. | |
Describes a single square water region.
Definition at line 39 of file water_regions.h.
|
inline |
Definition at line 43 of file water_regions.h.
|
inline |
Definition at line 44 of file water_regions.h.
|
inline |
Definition at line 46 of file water_regions.h.
| int WaterRegionDesc::x |
The X coordinate of the water region, i.e. X=2 is the 3rd water region along the X-axis.
Definition at line 40 of file water_regions.h.
Referenced by GetWaterRegionCenterTile(), and GetWaterRegionIndex().
| int WaterRegionDesc::y |
The Y coordinate of the water region, i.e. Y=2 is the 3rd water region along the Y-axis.
Definition at line 41 of file water_regions.h.
Referenced by GetWaterRegionCenterTile(), and GetWaterRegionIndex().