Files
@ r10038:e1604b256132
Branch filter:
Location: cpp/openttd-patchpack/source/src/engine_func.h - annotation
r10038:e1604b256132
881 B
text/x-c
(svn r14198) -Codechange: [NewGRF] Simplify handling of common vehicle properties.
r8786:f24a6d1fba34 r8786:f24a6d1fba34 r9111:983de9c5a848 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r9070:e059c65164f3 r9070:e059c65164f3 r9070:e059c65164f3 r9070:e059c65164f3 r9070:e059c65164f3 r9070:e059c65164f3 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r8786:f24a6d1fba34 r9211:ed60710b275b r8786:f24a6d1fba34 r8786:f24a6d1fba34 | /* $Id$ */
/** @file engine_func.h Functions related to engines. */
#ifndef ENGINE_H
#define ENGINE_H
#include "engine_type.h"
void SetupEngines();
void StartupEngines();
Engine *GetTempDataEngine(EngineID index);
void CopyTempEngineData();
/* Original engine data counts and offsets */
extern const uint8 _engine_counts[4];
extern const uint8 _engine_offsets[4];
void DrawTrainEngine(int x, int y, EngineID engine, SpriteID pal);
void DrawRoadVehEngine(int x, int y, EngineID engine, SpriteID pal);
void DrawShipEngine(int x, int y, EngineID engine, SpriteID pal);
void DrawAircraftEngine(int x, int y, EngineID engine, SpriteID pal);
void LoadCustomEngineNames();
void DeleteCustomEngineNames();
bool IsEngineBuildable(EngineID engine, VehicleType type, PlayerID player);
CargoID GetEngineCargoType(EngineID engine);
void SetCachedEngineCounts();
#endif /* ENGINE_H */
|