75 typedef int GetSlopeZProc(
TileIndex tile, uint x, uint y);
114 typedef bool ClickTileProc(
TileIndex tile);
115 typedef void AnimateTileProc(
TileIndex tile);
116 typedef void TileLoopProc(
TileIndex tile);
146 GetSlopeZProc *get_slope_z_proc;
147 ClearTileProc *clear_tile_proc;
152 AnimateTileProc *animate_tile_proc;
153 TileLoopProc *tile_loop_proc;
154 ChangeTileOwnerProc *change_tile_owner_proc;
157 GetFoundationProc *get_foundation_proc;
168 static inline void AddAcceptedCargo(
TileIndex tile,
CargoArray &acceptance, uint32 *always_accepted)
171 if (proc == NULL)
return;
173 proc(tile, acceptance, always_accepted == NULL ? &dummy : always_accepted);
179 if (proc == NULL)
return;
180 proc(tile, produced);
183 static inline void AnimateTile(
TileIndex tile)
185 AnimateTileProc *proc = _tile_type_procs[
GetTileType(tile)]->animate_tile_proc;
186 assert(proc != NULL);
190 static inline bool ClickTile(
TileIndex tile)
193 if (proc == NULL)
return false;