src/tile_cmd.h
author peter1138
Tue, 12 Feb 2008 13:23:57 +0000
changeset 8544 47b99dc2da26
parent 8373 7431d91527f2
child 8596 c3404405f3f5
permissions -rw-r--r--
(svn r12122) -Codechange: Add framework for generic feature callbacks, along with some parts for AI use.
8119
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     1
/* $Id$ */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     2
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     3
/** @file tile_cmd.h Generic 'commands' that can be performed on all tiles. */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     4
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     5
#ifndef TILE_CMD_H
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     6
#define TILE_CMD_H
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     7
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
     8
#include "slope_type.h"
8138
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
     9
#include "tile_type.h"
8119
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    10
#include "command_type.h"
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    11
#include "vehicle_type.h"
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    12
#include "cargo_type.h"
8138
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    13
#include "strings_type.h"
8140
0d0d8c94f84b (svn r11702) -Codechange: move all date related stuff to date*.
rubidium
parents: 8138
diff changeset
    14
#include "date_type.h"
8254
1496654ca5e7 (svn r11818) -Codechange: split player.h into smaller pieces.
rubidium
parents: 8140
diff changeset
    15
#include "player_type.h"
8119
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    16
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    17
/** The returned bits of VehicleEnterTile. */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    18
enum VehicleEnterTileStatus {
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    19
	VETS_ENTERED_STATION  = 1, ///< The vehicle entered a station
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    20
	VETS_ENTERED_WORMHOLE = 2, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel)
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    21
	VETS_CANNOT_ENTER     = 3, ///< The vehicle cannot enter the tile
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    22
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    23
	/**
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    24
	 * Shift the VehicleEnterTileStatus this many bits
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    25
	 * to the right to get the station ID when
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    26
	 * VETS_ENTERED_STATION is set
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    27
	 */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    28
	VETS_STATION_ID_OFFSET = 8,
8373
7431d91527f2 (svn r11939) -Codechange: some type fixes and very initial steps into supporting NDS by default. Based on work by Dominik.
rubidium
parents: 8254
diff changeset
    29
	VETS_STATION_MASK      = 0xFFFF << VETS_STATION_ID_OFFSET,
8119
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    30
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    31
	/** Bit sets of the above specified bits */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    32
	VETSB_CONTINUE         = 0,                          ///< The vehicle can continue normally
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    33
	VETSB_ENTERED_STATION  = 1 << VETS_ENTERED_STATION,  ///< The vehicle entered a station
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    34
	VETSB_ENTERED_WORMHOLE = 1 << VETS_ENTERED_WORMHOLE, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel)
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    35
	VETSB_CANNOT_ENTER     = 1 << VETS_CANNOT_ENTER,     ///< The vehicle cannot enter the tile
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    36
};
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    37
DECLARE_ENUM_AS_BIT_SET(VehicleEnterTileStatus);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    38
8138
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    39
struct TileInfo {
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    40
	uint x;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    41
	uint y;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    42
	Slope tileh;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    43
	TileIndex tile;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    44
	uint z;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    45
};
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    46
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    47
struct TileDesc {
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    48
	StringID str;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    49
	Owner owner;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    50
	Date build_date;
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    51
	uint64 dparam[2];
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    52
};
dbfdc08fa6b9 (svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents: 8119
diff changeset
    53
8119
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    54
typedef void DrawTileProc(TileInfo *ti);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    55
typedef uint GetSlopeZProc(TileIndex tile, uint x, uint y);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    56
typedef CommandCost ClearTileProc(TileIndex tile, byte flags);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    57
typedef void GetAcceptedCargoProc(TileIndex tile, AcceptedCargo res);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    58
typedef void GetTileDescProc(TileIndex tile, TileDesc *td);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    59
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    60
/**
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    61
 * GetTileTrackStatusProcs return a value that contains the possible tracks
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    62
 * that can be taken on a given tile by a given transport. The return value is
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    63
 * composed as follows: 0xaabbccdd. ccdd and aabb are bitmasks of trackdirs,
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    64
 * where bit n corresponds to trackdir n. ccdd are the trackdirs that are
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    65
 * present in the tile (1==present, 0==not present), aabb is the signal
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    66
 * status, if applicable (0==green/no signal, 1==red, note that this is
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    67
 * reversed from map3/2[tile] for railway signals).
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    68
 *
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    69
 * The result (let's call it ts) is often used as follows:
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    70
 * tracks = (byte)(ts | ts >>8)
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    71
 * This effectively converts the present part of the result (ccdd) to a
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    72
 * track bitmask, which disregards directions. Normally, this is the same as just
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    73
 * doing (byte)ts I think, although I am not really sure
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    74
 *
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    75
 * A trackdir is combination of a track and a dir, where the lower three bits
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    76
 * are a track, the fourth bit is the direction. these give 12 (or 14)
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    77
 * possible options: 0-5 and 8-13, so we need 14 bits for a trackdir bitmask
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    78
 * above.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    79
 * @param tile     the tile to get the track status from
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    80
 * @param mode     the mode of transportation
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    81
 * @param sub_mode used to differentiate between different kinds within the mode
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    82
 * @return the above mentions track status information
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    83
 */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    84
typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    85
typedef void GetProducedCargoProc(TileIndex tile, CargoID *b);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    86
typedef void ClickTileProc(TileIndex tile);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    87
typedef void AnimateTileProc(TileIndex tile);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    88
typedef void TileLoopProc(TileIndex tile);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    89
typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    90
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    91
/** @see VehicleEnterTileStatus to see what the return values mean */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    92
typedef VehicleEnterTileStatus VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    93
typedef Foundation GetFoundationProc(TileIndex tile, Slope tileh);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    94
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    95
/**
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    96
 * Called when a tile is affected by a terraforming operation.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    97
 * The function has to check if terraforming of the tile is allowed and return extra terraform-cost that depend on the tiletype.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    98
 * With DC_EXEC in flags it has to perform tiletype-specific actions (like clearing land etc., but not the terraforming itself).
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
    99
 *
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   100
 * @note The terraforming has not yet taken place. So GetTileZ() and GetTileSlope() refer to the landscape before the terraforming operation.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   101
 *
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   102
 * @param tile      The involved tile.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   103
 * @param flags     Command flags passed to the terraform command (DC_EXEC, DC_QUERY_COST, etc.).
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   104
 * @param z_new     TileZ after terraforming.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   105
 * @param tileh_new Slope after terraforming.
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   106
 * @return Error code or extra cost for terraforming (like clearing land, building foundations, etc., but not the terraforming itself.)
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   107
 */
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   108
typedef CommandCost TerraformTileProc(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   109
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   110
struct TileTypeProcs {
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   111
	DrawTileProc *draw_tile_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   112
	GetSlopeZProc *get_slope_z_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   113
	ClearTileProc *clear_tile_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   114
	GetAcceptedCargoProc *get_accepted_cargo_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   115
	GetTileDescProc *get_tile_desc_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   116
	GetTileTrackStatusProc *get_tile_track_status_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   117
	ClickTileProc *click_tile_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   118
	AnimateTileProc *animate_tile_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   119
	TileLoopProc *tile_loop_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   120
	ChangeTileOwnerProc *change_tile_owner_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   121
	GetProducedCargoProc *get_produced_cargo_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   122
	VehicleEnterTileProc *vehicle_enter_tile_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   123
	GetFoundationProc *get_foundation_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   124
	TerraformTileProc *terraform_tile_proc;
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   125
};
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   126
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   127
extern const TileTypeProcs * const _tile_type_procs[16];
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   128
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   129
uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   130
void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   131
void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   132
void AnimateTile(TileIndex tile);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   133
void ClickTile(TileIndex tile);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   134
void GetTileDesc(TileIndex tile, TileDesc *td);
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   135
52b48108425a (svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
diff changeset
   136
#endif /* TILE_CMD_H */