src/tile_cmd.h
changeset 9092 383a632de666
parent 8869 1e62a45d7599
child 9112 ec6800eaa340
equal deleted inserted replaced
9091:c1cddeb8511c 9092:383a632de666
    11 #include "vehicle_type.h"
    11 #include "vehicle_type.h"
    12 #include "cargo_type.h"
    12 #include "cargo_type.h"
    13 #include "strings_type.h"
    13 #include "strings_type.h"
    14 #include "date_type.h"
    14 #include "date_type.h"
    15 #include "player_type.h"
    15 #include "player_type.h"
       
    16 #include "direction_type.h"
    16 
    17 
    17 /** The returned bits of VehicleEnterTile. */
    18 /** The returned bits of VehicleEnterTile. */
    18 enum VehicleEnterTileStatus {
    19 enum VehicleEnterTileStatus {
    19 	VETS_ENTERED_STATION  = 1, ///< The vehicle entered a station
    20 	VETS_ENTERED_STATION  = 1, ///< The vehicle entered a station
    20 	VETS_ENTERED_WORMHOLE = 2, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel)
    21 	VETS_ENTERED_WORMHOLE = 2, ///< The vehicle either entered a bridge, tunnel or depot tile (this includes the last tile of the bridge/tunnel)
    79  * @param tile     the tile to get the track status from
    80  * @param tile     the tile to get the track status from
    80  * @param mode     the mode of transportation
    81  * @param mode     the mode of transportation
    81  * @param sub_mode used to differentiate between different kinds within the mode
    82  * @param sub_mode used to differentiate between different kinds within the mode
    82  * @return the above mentions track status information
    83  * @return the above mentions track status information
    83  */
    84  */
    84 typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode);
    85 typedef uint32 GetTileTrackStatusProc(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side);
    85 typedef void GetProducedCargoProc(TileIndex tile, CargoID *b);
    86 typedef void GetProducedCargoProc(TileIndex tile, CargoID *b);
    86 typedef void ClickTileProc(TileIndex tile);
    87 typedef void ClickTileProc(TileIndex tile);
    87 typedef void AnimateTileProc(TileIndex tile);
    88 typedef void AnimateTileProc(TileIndex tile);
    88 typedef void TileLoopProc(TileIndex tile);
    89 typedef void TileLoopProc(TileIndex tile);
    89 typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player);
    90 typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player);
   124 	TerraformTileProc *terraform_tile_proc;
   125 	TerraformTileProc *terraform_tile_proc;
   125 };
   126 };
   126 
   127 
   127 extern const TileTypeProcs * const _tile_type_procs[16];
   128 extern const TileTypeProcs * const _tile_type_procs[16];
   128 
   129 
   129 uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode);
   130 uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side = INVALID_DIAGDIR);
   130 void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac);
   131 void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac);
   131 void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player);
   132 void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player);
   132 void AnimateTile(TileIndex tile);
   133 void AnimateTile(TileIndex tile);
   133 void ClickTile(TileIndex tile);
   134 void ClickTile(TileIndex tile);
   134 void GetTileDesc(TileIndex tile, TileDesc *td);
   135 void GetTileDesc(TileIndex tile, TileDesc *td);