# engine_func.h

Go to the documentation of this file.

    00001 /* $Id: engine_func.h 15412 2009-02-08 12:58:14Z peter1138 $ */
    00002
    00005 #ifndef ENGINE_H
    00006 #define ENGINE_H
    00007
    00008 #include "engine_type.h"
    00009
    00010 void SetupEngines();
    00011 void StartupEngines();
    00012
    00013 /* Original engine data counts and offsets */
    00014 extern const uint8 _engine_counts[4];
    00015 extern const uint8 _engine_offsets[4];
    00016
    00017 void DrawTrainEngine(int x, int y, EngineID engine, SpriteID pal);
    00018 void DrawRoadVehEngine(int x, int y, EngineID engine, SpriteID pal);
    00019 void DrawShipEngine(int x, int y, EngineID engine, SpriteID pal);
    00020 void DrawAircraftEngine(int x, int y, EngineID engine, SpriteID pal);
    00021
    00022 bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company);
    00023 bool IsEngineRefittable(EngineID engine);
    00024 CargoID GetEngineCargoType(EngineID engine);
    00025 void SetCachedEngineCounts();
    00026 void SetYearEngineAgingStops();
    00027 void StartupOneEngine(Engine *e, Date aging_date);
    00028
    00029 #endif /* ENGINE_H */