equal
deleted
inserted
replaced
329 /* Return value has bit 0x2 set, when the vehicle enters a station. Then, |
329 /* Return value has bit 0x2 set, when the vehicle enters a station. Then, |
330 * result << 8 contains the id of the station entered. If the return value has |
330 * result << 8 contains the id of the station entered. If the return value has |
331 * bit 0x8 set, the vehicle could not and did not enter the tile. Are there |
331 * bit 0x8 set, the vehicle could not and did not enter the tile. Are there |
332 * other bits that can be set? */ |
332 * other bits that can be set? */ |
333 typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y); |
333 typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y); |
334 typedef void VehicleLeaveTileProc(Vehicle *v, TileIndex tile, int x, int y); |
|
335 typedef Slope GetSlopeTilehProc(TileIndex, Slope tileh); |
334 typedef Slope GetSlopeTilehProc(TileIndex, Slope tileh); |
336 |
335 |
337 typedef struct { |
336 typedef struct { |
338 DrawTileProc *draw_tile_proc; |
337 DrawTileProc *draw_tile_proc; |
339 GetSlopeZProc *get_slope_z_proc; |
338 GetSlopeZProc *get_slope_z_proc; |
345 AnimateTileProc *animate_tile_proc; |
344 AnimateTileProc *animate_tile_proc; |
346 TileLoopProc *tile_loop_proc; |
345 TileLoopProc *tile_loop_proc; |
347 ChangeTileOwnerProc *change_tile_owner_proc; |
346 ChangeTileOwnerProc *change_tile_owner_proc; |
348 GetProducedCargoProc *get_produced_cargo_proc; |
347 GetProducedCargoProc *get_produced_cargo_proc; |
349 VehicleEnterTileProc *vehicle_enter_tile_proc; |
348 VehicleEnterTileProc *vehicle_enter_tile_proc; |
350 VehicleLeaveTileProc *vehicle_leave_tile_proc; |
|
351 GetSlopeTilehProc *get_slope_tileh_proc; |
349 GetSlopeTilehProc *get_slope_tileh_proc; |
352 } TileTypeProcs; |
350 } TileTypeProcs; |
353 |
351 |
354 |
352 |
355 enum { |
353 enum { |