saveload_internal.h

Go to the documentation of this file.
00001 /* $Id: saveload_internal.h 18404 2009-12-04 20:52:19Z rubidium $ */
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 "../strings_type.h"
00016 #include "../company_manager_face.h"
00017 #include "../order_base.h"
00018 #include "../engine_type.h"
00019 #include "saveload.h"
00020 
00021 void InitializeOldNames();
00022 StringID RemapOldStringID(StringID s);
00023 char *CopyFromOldName(StringID id);
00024 void ResetOldNames();
00025 
00026 void MoveBuoysToWaypoints();
00027 void MoveWaypointsToBaseStations();
00028 const SaveLoad *GetBaseStationDescription();
00029 
00030 void AfterLoadVehicles(bool part_of_load);
00031 void AfterLoadStations();
00032 void AfterLoadRoadStops();
00033 void AfterLoadLabelMaps();
00034 void UpdateHousesAndTowns();
00035 
00036 void UpdateOldAircraft();
00037 
00038 void SaveViewportBeforeSaveGame();
00039 void ResetViewportAfterLoadGame();
00040 
00041 void ConvertOldMultiheadToNew();
00042 void ConnectMultiheadedTrains();
00043 
00044 Engine *GetTempDataEngine(EngineID index);
00045 void CopyTempEngineData();
00046 
00047 extern int32 _saved_scrollpos_x;
00048 extern int32 _saved_scrollpos_y;
00049 extern ZoomLevelByte _saved_scrollpos_zoom;
00050 
00051 extern SavegameType _savegame_type;
00052 extern uint32 _ttdp_version;
00053 
00054 CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face);
00055 
00056 Order UnpackOldOrder(uint16 packed);
00057 
00058 #endif /* SAVELOAD_INTERNAL_H */

Generated on Wed Dec 23 23:27:54 2009 for OpenTTD by  doxygen 1.5.6