equal
deleted
inserted
replaced
49 SpriteID pal; |
49 SpriteID pal; |
50 }; |
50 }; |
51 typedef uint16 EngineID; |
51 typedef uint16 EngineID; |
52 typedef uint16 UnitID; |
52 typedef uint16 UnitID; |
53 typedef uint16 StringID; |
53 typedef uint16 StringID; |
54 #define INVALID_STRING_ID 0xFFFF |
54 static const StringID INVALID_STRING_ID = 0xFFFF; |
55 |
55 |
56 typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp) |
56 typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp) |
57 |
57 |
58 /* IDs used in Pools */ |
58 /* IDs used in Pools */ |
59 typedef uint16 VehicleID; |
59 typedef uint16 VehicleID; |
470 typedef void AnimateTileProc(TileIndex tile); |
470 typedef void AnimateTileProc(TileIndex tile); |
471 typedef void TileLoopProc(TileIndex tile); |
471 typedef void TileLoopProc(TileIndex tile); |
472 typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player); |
472 typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID new_player); |
473 /** @see VehicleEnterTileStatus to see what the return values mean */ |
473 /** @see VehicleEnterTileStatus to see what the return values mean */ |
474 typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y); |
474 typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y); |
475 typedef Slope GetSlopeTilehProc(TileIndex, Slope tileh); |
475 typedef Foundation GetFoundationProc(TileIndex tile, Slope tileh); |
476 |
476 |
477 struct TileTypeProcs { |
477 struct TileTypeProcs { |
478 DrawTileProc *draw_tile_proc; |
478 DrawTileProc *draw_tile_proc; |
479 GetSlopeZProc *get_slope_z_proc; |
479 GetSlopeZProc *get_slope_z_proc; |
480 ClearTileProc *clear_tile_proc; |
480 ClearTileProc *clear_tile_proc; |
485 AnimateTileProc *animate_tile_proc; |
485 AnimateTileProc *animate_tile_proc; |
486 TileLoopProc *tile_loop_proc; |
486 TileLoopProc *tile_loop_proc; |
487 ChangeTileOwnerProc *change_tile_owner_proc; |
487 ChangeTileOwnerProc *change_tile_owner_proc; |
488 GetProducedCargoProc *get_produced_cargo_proc; |
488 GetProducedCargoProc *get_produced_cargo_proc; |
489 VehicleEnterTileProc *vehicle_enter_tile_proc; |
489 VehicleEnterTileProc *vehicle_enter_tile_proc; |
490 GetSlopeTilehProc *get_slope_tileh_proc; |
490 GetFoundationProc *get_foundation_proc; |
491 }; |
491 }; |
492 |
492 |
493 |
493 |
494 enum WindowClass { |
494 enum WindowClass { |
495 WC_NONE, |
495 WC_NONE, |