|
@@ -6,24 +6,25 @@
|
|
|
*/
|
|
|
|
|
|
/** @file tile_cmd.h Generic 'commands' that can be performed on all tiles. */
|
|
|
|
|
|
#ifndef TILE_CMD_H
|
|
|
#define TILE_CMD_H
|
|
|
|
|
|
#include "command_type.h"
|
|
|
#include "vehicle_type.h"
|
|
|
#include "cargo_type.h"
|
|
|
#include "track_type.h"
|
|
|
#include "tile_map.h"
|
|
|
#include "timer/timer_game_calendar.h"
|
|
|
|
|
|
/** The returned bits of VehicleEnterTile. */
|
|
|
enum VehicleEnterTileStatus {
|
|
|
VETS_ENTERED_STATION = 1, ///< The vehicle entered a station
|
|
|
VETS_ENTERED_WORMHOLE = 2, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel)
|
|
|
VETS_CANNOT_ENTER = 3, ///< The vehicle cannot enter the tile
|
|
|
|
|
|
/**
|
|
|
* Shift the VehicleEnterTileStatus this many bits
|
|
|
* to the right to get the station ID when
|
|
|
* VETS_ENTERED_STATION is set
|
|
|
*/
|
|
@@ -43,25 +44,25 @@ struct TileInfo {
|
|
|
int x; ///< X position of the tile in unit coordinates
|
|
|
int y; ///< Y position of the tile in unit coordinates
|
|
|
Slope tileh; ///< Slope of the tile
|
|
|
TileIndex tile; ///< Tile index
|
|
|
int z; ///< Height
|
|
|
};
|
|
|
|
|
|
/** Tile description for the 'land area information' tool */
|
|
|
struct TileDesc {
|
|
|
StringID str; ///< Description of the tile
|
|
|
Owner owner[4]; ///< Name of the owner(s)
|
|
|
StringID owner_type[4]; ///< Type of each owner
|
|
|
Date build_date; ///< Date of construction of tile contents
|
|
|
TimerGameCalendar::Date build_date; ///< Date of construction of tile contents
|
|
|
StringID station_class; ///< Class of station
|
|
|
StringID station_name; ///< Type of station within the class
|
|
|
StringID airport_class; ///< Name of the airport class
|
|
|
StringID airport_name; ///< Name of the airport
|
|
|
StringID airport_tile_name; ///< Name of the airport tile
|
|
|
const char *grf; ///< newGRF used for the tile contents
|
|
|
uint64 dparam[2]; ///< Parameters of the \a str string
|
|
|
StringID railtype; ///< Type of rail on the tile.
|
|
|
uint16 rail_speed; ///< Speed limit of rail (bridges and track)
|
|
|
StringID roadtype; ///< Type of road on the tile.
|
|
|
uint16 road_speed; ///< Speed limit of road (bridges and track)
|
|
|
StringID tramtype; ///< Type of tram on the tile.
|