# engine_func.h

Go to the documentation of this file.

    00001 /* $Id: engine_func.h 15666 2009-03-10 21:17:00Z 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 /* 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 void SetCachedEngineCounts();
    00025 void SetYearEngineAgingStops();
    00026 void StartupOneEngine(Engine *e, Date aging_date);
    00027
    00028 uint GetTotalCapacityOfArticulatedParts(EngineID engine, VehicleType type);
    00029
    00030 #endif /* ENGINE_H */