74 typedef int GetSlopeZProc(
TileIndex tile, uint x, uint y);
113 typedef bool ClickTileProc(
TileIndex tile);
114 typedef void AnimateTileProc(
TileIndex tile);
115 typedef void TileLoopProc(
TileIndex tile);
145 GetSlopeZProc *get_slope_z_proc;
146 ClearTileProc *clear_tile_proc;
151 AnimateTileProc *animate_tile_proc;
152 TileLoopProc *tile_loop_proc;
153 ChangeTileOwnerProc *change_tile_owner_proc;
156 GetFoundationProc *get_foundation_proc;
167 static inline void AddAcceptedCargo(
TileIndex tile,
CargoArray &acceptance, uint32 *always_accepted)
170 if (proc == NULL)
return;
172 proc(tile, acceptance, always_accepted == NULL ? &dummy : always_accepted);
178 if (proc == NULL)
return;
179 proc(tile, produced);
182 static inline void AnimateTile(
TileIndex tile)
184 AnimateTileProc *proc = _tile_type_procs[
GetTileType(tile)]->animate_tile_proc;
185 assert(proc != NULL);
189 static inline bool ClickTile(
TileIndex tile)
192 if (proc == NULL)
return false;