saveload_internal.h

Go to the documentation of this file.
00001 /* $Id: saveload_internal.h 18809 2010-01-15 16:41:15Z 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 "../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 UpdateHousesAndTowns();
00034 
00035 void UpdateOldAircraft();
00036 
00037 void SaveViewportBeforeSaveGame();
00038 void ResetViewportAfterLoadGame();
00039 
00040 void ConvertOldMultiheadToNew();
00041 void ConnectMultiheadedTrains();
00042 
00043 Engine *GetTempDataEngine(EngineID index);
00044 void CopyTempEngineData();
00045 
00046 extern int32 _saved_scrollpos_x;
00047 extern int32 _saved_scrollpos_y;
00048 extern ZoomLevelByte _saved_scrollpos_zoom;
00049 
00050 extern SavegameType _savegame_type;
00051 extern uint32 _ttdp_version;
00052 
00053 CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face);
00054 
00055 Order UnpackOldOrder(uint16 packed);
00056 
00057 #endif /* SAVELOAD_INTERNAL_H */

Generated on Wed Jan 20 23:38:39 2010 for OpenTTD by  doxygen 1.5.6