dummy_land.cpp

Go to the documentation of this file.
00001 /* $Id: dummy_land.cpp 12199 2008-02-20 17:49:50Z frosch $ */
00002 
00005 #include "stdafx.h"
00006 #include "openttd.h"
00007 #include "tile_cmd.h"
00008 #include "command_func.h"
00009 #include "viewport_func.h"
00010 
00011 #include "table/strings.h"
00012 #include "table/sprites.h"
00013 
00014 static void DrawTile_Dummy(TileInfo *ti)
00015 {
00016   DrawGroundSpriteAt(SPR_SHADOW_CELL, PAL_NONE, ti->x, ti->y, ti->z);
00017 }
00018 
00019 
00020 static uint GetSlopeZ_Dummy(TileIndex tile, uint x, uint y)
00021 {
00022   return 0;
00023 }
00024 
00025 static Foundation GetFoundation_Dummy(TileIndex tile, Slope tileh)
00026 {
00027   return FOUNDATION_NONE;
00028 }
00029 
00030 static CommandCost ClearTile_Dummy(TileIndex tile, byte flags)
00031 {
00032   return_cmd_error(STR_0001_OFF_EDGE_OF_MAP);
00033 }
00034 
00035 
00036 static void GetAcceptedCargo_Dummy(TileIndex tile, AcceptedCargo ac)
00037 {
00038   /* not used */
00039 }
00040 
00041 static void GetTileDesc_Dummy(TileIndex tile, TileDesc *td)
00042 {
00043   td->str = STR_EMPTY;
00044   td->owner = OWNER_NONE;
00045 }
00046 
00047 static void AnimateTile_Dummy(TileIndex tile)
00048 {
00049   /* not used */
00050 }
00051 
00052 static void TileLoop_Dummy(TileIndex tile)
00053 {
00054   /* not used */
00055 }
00056 
00057 static void ClickTile_Dummy(TileIndex tile)
00058 {
00059   /* not used */
00060 }
00061 
00062 static void ChangeTileOwner_Dummy(TileIndex tile, PlayerID old_player, PlayerID new_player)
00063 {
00064   /* not used */
00065 }
00066 
00067 static TrackStatus GetTileTrackStatus_Dummy(TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side)
00068 {
00069   return 0;
00070 }
00071 
00072 static CommandCost TerraformTile_Dummy(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new)
00073 {
00074   return_cmd_error(STR_0001_OFF_EDGE_OF_MAP);
00075 }
00076 
00077 extern const TileTypeProcs _tile_type_dummy_procs = {
00078   DrawTile_Dummy,           /* draw_tile_proc */
00079   GetSlopeZ_Dummy,          /* get_slope_z_proc */
00080   ClearTile_Dummy,          /* clear_tile_proc */
00081   GetAcceptedCargo_Dummy,   /* get_accepted_cargo_proc */
00082   GetTileDesc_Dummy,        /* get_tile_desc_proc */
00083   GetTileTrackStatus_Dummy, /* get_tile_track_status_proc */
00084   ClickTile_Dummy,          /* click_tile_proc */
00085   AnimateTile_Dummy,        /* animate_tile_proc */
00086   TileLoop_Dummy,           /* tile_loop_clear */
00087   ChangeTileOwner_Dummy,    /* change_tile_owner_clear */
00088   NULL,                     /* get_produced_cargo_proc */
00089   NULL,                     /* vehicle_enter_tile_proc */
00090   GetFoundation_Dummy,      /* get_foundation_proc */
00091   TerraformTile_Dummy,      /* terraform_tile_proc */
00092 };

Generated on Wed Oct 1 17:03:20 2008 for openttd by  doxygen 1.5.6