dummy_land.c
changeset 0 29654efe3188
child 39 d177340ed556
equal deleted inserted replaced
-1:000000000000 0:29654efe3188
       
     1 #include "stdafx.h"
       
     2 #include "ttd.h"
       
     3 #include "viewport.h"
       
     4 #include "command.h"
       
     5 
       
     6 static void DrawTile_Dummy(TileInfo *ti)
       
     7 {
       
     8 	DrawGroundSpriteAt(0x3EC, ti->x, ti->y, ti->z);
       
     9 }
       
    10 
       
    11 
       
    12 static uint GetSlopeZ_Dummy(TileInfo *ti) {
       
    13 	return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z;
       
    14 }
       
    15 
       
    16 static int32 ClearTile_Dummy(uint tile, byte flags) {
       
    17 	return_cmd_error(STR_0001_OFF_EDGE_OF_MAP);
       
    18 }
       
    19 
       
    20 
       
    21 static void GetAcceptedCargo_Dummy(uint tile, AcceptedCargo *ac)
       
    22 {
       
    23 	/* not used */
       
    24 }
       
    25 
       
    26 static void GetTileDesc_Dummy(uint tile, TileDesc *td)
       
    27 {
       
    28 	td->str = STR_EMPTY;
       
    29 	td->owner = OWNER_NONE;
       
    30 }
       
    31 
       
    32 static void AnimateTile_Dummy(uint tile)
       
    33 {
       
    34 	/* not used */
       
    35 }
       
    36 
       
    37 static void TileLoop_Dummy(uint tile)
       
    38 {
       
    39 	/* not used */
       
    40 }
       
    41 
       
    42 static void ClickTile_Dummy(uint tile)
       
    43 {
       
    44 	/* not used */
       
    45 }
       
    46 
       
    47 static void ChangeTileOwner_Dummy(uint tile, byte old_player, byte new_player)
       
    48 {
       
    49 	/* not used */
       
    50 }
       
    51 
       
    52 static uint32 GetTileTrackStatus_Dummy(uint tile, int mode)
       
    53 {
       
    54 	return 0;
       
    55 }
       
    56 
       
    57 const TileTypeProcs _tile_type_dummy_procs = {
       
    58 	DrawTile_Dummy,						/* draw_tile_proc */
       
    59 	GetSlopeZ_Dummy,					/* get_slope_z_proc */
       
    60 	ClearTile_Dummy,					/* clear_tile_proc */
       
    61 	GetAcceptedCargo_Dummy,		/* get_accepted_cargo_proc */
       
    62 	GetTileDesc_Dummy,				/* get_tile_desc_proc */
       
    63 	GetTileTrackStatus_Dummy,	/* get_tile_track_status_proc */
       
    64 	ClickTile_Dummy,					/* click_tile_proc */
       
    65 	AnimateTile_Dummy,				/* animate_tile_proc */
       
    66 	TileLoop_Dummy,						/* tile_loop_clear */
       
    67 	ChangeTileOwner_Dummy,		/* change_tile_owner_clear */
       
    68 	NULL,											/* get_produced_cargo_proc */
       
    69 	NULL,											/* vehicle_enter_tile_proc */
       
    70 	NULL,											/* vehicle_leave_tile_proc */
       
    71 };
       
    72