00001 /* $Id$ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. 00006 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00007 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. 00008 */ 00009 00012 #ifndef SAVELOAD_INTERNAL_H 00013 #define SAVELOAD_INTERNAL_H 00014 00015 #include "../company_manager_face.h" 00016 #include "../order_base.h" 00017 #include "../engine_type.h" 00018 #include "saveload.h" 00019 00020 void InitializeOldNames(); 00021 StringID RemapOldStringID(StringID s); 00022 char *CopyFromOldName(StringID id); 00023 void ResetOldNames(); 00024 00025 void MoveBuoysToWaypoints(); 00026 void MoveWaypointsToBaseStations(); 00027 const SaveLoad *GetBaseStationDescription(); 00028 00029 void AfterLoadVehicles(bool part_of_load); 00030 void AfterLoadStations(); 00031 void AfterLoadRoadStops(); 00032 void AfterLoadLabelMaps(); 00033 void AfterLoadLinkGraphs(); 00034 void AfterLoadCompanyStats(); 00035 void UpdateHousesAndTowns(); 00036 00037 void UpdateOldAircraft(); 00038 00039 void SaveViewportBeforeSaveGame(); 00040 void ResetViewportAfterLoadGame(); 00041 00042 void ConvertOldMultiheadToNew(); 00043 void ConnectMultiheadedTrains(); 00044 00045 Engine *GetTempDataEngine(EngineID index); 00046 void CopyTempEngineData(); 00047 00048 extern int32 _saved_scrollpos_x; 00049 extern int32 _saved_scrollpos_y; 00050 extern ZoomLevelByte _saved_scrollpos_zoom; 00051 00052 extern SavegameType _savegame_type; 00053 extern uint32 _ttdp_version; 00054 00055 CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face); 00056 00057 Order UnpackOldOrder(uint16 packed); 00058 00059 #endif /* SAVELOAD_INTERNAL_H */