OpenTTD Source: GetNewVehiclePosResult Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
GetNewVehiclePosResult Struct Reference

Position information of a vehicle after it moved. More...

`#include <vehicle_func.h>`

## Data Fields
int | x
int | y
| x and y position of the vehicle after moving
TileIndex | old_tile
| Current tile of the vehicle.
TileIndex | new_tile
| Tile of the vehicle after moving.

## Detailed Description

Position information of a vehicle after it moved.

Definition at line 214 of file vehicle_func.h.

## Field Documentation

## ◆ new_tile

TileIndex GetNewVehiclePosResult::new_tile

Tile of the vehicle after moving.

Definition at line 217 of file vehicle_func.h.

Referenced by AircraftController(), GetNewVehiclePos(), and TrainController().

## ◆ old_tile

TileIndex GetNewVehiclePosResult::old_tile

Current tile of the vehicle.

Definition at line 216 of file vehicle_func.h.

Referenced by AircraftController(), GetNewVehiclePos(), and TrainController().

## ◆ x

int GetNewVehiclePosResult::x

Definition at line 215 of file vehicle_func.h.

## ◆ y

int GetNewVehiclePosResult::y

x and y position of the vehicle after moving

Definition at line 215 of file vehicle_func.h.

Referenced by AircraftController(), DisasterTick_Aircraft(), DisasterTick_Big_Ufo(), DisasterTick_Big_Ufo_Destroyer(), DisasterTick_Submarine(), DisasterTick_Ufo(), DisasterTick_Zeppeliner(), GetNewVehiclePos(), TrainController(), and UpdateOldAircraft().

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

- src/vehicle_func.h