Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #include "stdafx.h"
00013 #include "tile_cmd.h"
00014 #include "command_func.h"
00015 #include "viewport_func.h"
00016 #include "sprite.h"
00017 #include "landscape.h"
00018 #include "company_func.h"
00019
00020 #include "table/strings.h"
00021 #include "table/sprites.h"
00022
00023 static void DrawTile_Void(TileInfo *ti)
00024 {
00025 DrawGroundSprite(SPR_SHADOW_CELL, PAL_NONE);
00026 }
00027
00028
00029 static int GetSlopePixelZ_Void(TileIndex tile, uint x, uint y)
00030 {
00031 return TilePixelHeight(tile);
00032 }
00033
00034 static Foundation GetFoundation_Void(TileIndex tile, Slope tileh)
00035 {
00036 return FOUNDATION_NONE;
00037 }
00038
00039 static CommandCost ClearTile_Void(TileIndex tile, DoCommandFlag flags)
00040 {
00041 return_cmd_error(STR_ERROR_OFF_EDGE_OF_MAP);
00042 }
00043
00044
00045 static void GetTileDesc_Void(TileIndex tile, TileDesc *td)
00046 {
00047 td->str = STR_EMPTY;
00048 td->owner[0] = OWNER_NONE;
00049 }
00050
00051 static void TileLoop_Void(TileIndex tile)
00052 {
00053
00054 }
00055
00056 static void ChangeTileOwner_Void(TileIndex tile, Owner old_owner, Owner new_owner)
00057 {
00058
00059 }
00060
00061 static TrackStatus GetTileTrackStatus_Void(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side)
00062 {
00063 return 0;
00064 }
00065
00066 static CommandCost TerraformTile_Void(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new)
00067 {
00068 return_cmd_error(STR_ERROR_OFF_EDGE_OF_MAP);
00069 }
00070
00071 extern const TileTypeProcs _tile_type_void_procs = {
00072 DrawTile_Void,
00073 GetSlopePixelZ_Void,
00074 ClearTile_Void,
00075 NULL,
00076 GetTileDesc_Void,
00077 GetTileTrackStatus_Void,
00078 NULL,
00079 NULL,
00080 TileLoop_Void,
00081 ChangeTileOwner_Void,
00082 NULL,
00083 NULL,
00084 GetFoundation_Void,
00085 TerraformTile_Void,
00086 };