void_cmd.cpp
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
00017 #include "table/strings.h"
00018 #include "table/sprites.h"
00019
00020 static void DrawTile_Void(TileInfo *ti)
00021 {
00022 DrawGroundSprite(SPR_SHADOW_CELL, PAL_NONE);
00023 }
00024
00025
00026 static uint GetSlopeZ_Void(TileIndex tile, uint x, uint y)
00027 {
00028 return TilePixelHeight(tile);
00029 }
00030
00031 static Foundation GetFoundation_Void(TileIndex tile, Slope tileh)
00032 {
00033 return FOUNDATION_NONE;
00034 }
00035
00036 static CommandCost ClearTile_Void(TileIndex tile, DoCommandFlag flags)
00037 {
00038 return_cmd_error(STR_ERROR_OFF_EDGE_OF_MAP);
00039 }
00040
00041
00042 static void GetTileDesc_Void(TileIndex tile, TileDesc *td)
00043 {
00044 td->str = STR_EMPTY;
00045 td->owner[0] = OWNER_NONE;
00046 }
00047
00048 static void TileLoop_Void(TileIndex tile)
00049 {
00050
00051 }
00052
00053 static void ChangeTileOwner_Void(TileIndex tile, Owner old_owner, Owner new_owner)
00054 {
00055
00056 }
00057
00058 static TrackStatus GetTileTrackStatus_Void(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side)
00059 {
00060 return 0;
00061 }
00062
00063 static CommandCost TerraformTile_Void(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
00064 {
00065 return_cmd_error(STR_ERROR_OFF_EDGE_OF_MAP);
00066 }
00067
00068 extern const TileTypeProcs _tile_type_void_procs = {
00069 DrawTile_Void,
00070 GetSlopeZ_Void,
00071 ClearTile_Void,
00072 NULL,
00073 GetTileDesc_Void,
00074 GetTileTrackStatus_Void,
00075 NULL,
00076 NULL,
00077 TileLoop_Void,
00078 ChangeTileOwner_Void,
00079 NULL,
00080 NULL,
00081 GetFoundation_Void,
00082 TerraformTile_Void,
00083 };