OpenTTD Source: TileIndexDiffC Struct Reference

OpenTTD Source 15.3

Data Fields
TileIndexDiffC Struct Reference

A pair-construct of a TileIndexDiff. More...

`#include <map_type.h>`

## Data Fields
int16_t | x
| The x value of the coordinate.
int16_t | y
| The y value of the coordinate.

## Detailed Description

A pair-construct of a TileIndexDiff.

This can be used to save the difference between to tiles as a pair of x and y value.

Definition at line 31 of file map_type.h.

## Field Documentation

## ◆ x

int16_t TileIndexDiffC::x

The x value of the coordinate.

Definition at line 32 of file map_type.h.

Referenced by AddTileIndexDiffCWrap(), DoTriggerHouseAnimation_WatchedCargoAccepted(), Airport::GetRotatedTileFromOffset(), GetTownRoadGridElement(), IndustriesChangeInfo(), TileIndexToTileIndexDiffC(), TileLoop_Town(), ToTileIndexDiff(), TownLayoutAllows2x2HouseHere(), TownLayoutAllowsHouseHere(), and VisitAdjacentWaterRegionPatchNeighbours().

## ◆ y

int16_t TileIndexDiffC::y

The y value of the coordinate.

Definition at line 33 of file map_type.h.

Referenced by AddTileIndexDiffCWrap(), DoTriggerHouseAnimation_WatchedCargoAccepted(), Airport::GetRotatedTileFromOffset(), GetTownRoadGridElement(), IndustriesChangeInfo(), TileIndexToTileIndexDiffC(), TileLoop_Town(), ToTileIndexDiff(), TownLayoutAllows2x2HouseHere(), TownLayoutAllowsHouseHere(), and VisitAdjacentWaterRegionPatchNeighbours().

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

- src/map_type.h