engine_func.h

Go to the documentation of this file.
00001 /* $Id: engine_func.h 14683 2008-12-16 22:02:12Z rubidium $ */
00002 
00005 #ifndef ENGINE_H
00006 #define ENGINE_H
00007 
00008 #include "engine_type.h"
00009 
00010 void SetupEngines();
00011 void StartupEngines();
00012 
00013 Engine *GetTempDataEngine(EngineID index);
00014 void CopyTempEngineData();
00015 
00016 /* Original engine data counts and offsets */
00017 extern const uint8 _engine_counts[4];
00018 extern const uint8 _engine_offsets[4];
00019 
00020 void DrawTrainEngine(int x, int y, EngineID engine, SpriteID pal);
00021 void DrawRoadVehEngine(int x, int y, EngineID engine, SpriteID pal);
00022 void DrawShipEngine(int x, int y, EngineID engine, SpriteID pal);
00023 void DrawAircraftEngine(int x, int y, EngineID engine, SpriteID pal);
00024 
00025 void LoadCustomEngineNames();
00026 void DeleteCustomEngineNames();
00027 
00028 bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company);
00029 bool IsEngineRefittable(EngineID engine);
00030 CargoID GetEngineCargoType(EngineID engine);
00031 void SetCachedEngineCounts();
00032 
00033 #endif /* ENGINE_H */

Generated on Mon Jan 5 19:01:36 2009 for openttd by  doxygen 1.5.6