File diff r8773:e411ce48e941 → r8774:d3e78cdfe4b0
src/engine.h
Show inline comments
 
@@ -260,12 +260,14 @@ static inline const AircraftVehicleInfo*
 
static inline const RoadVehicleInfo* RoadVehInfo(EngineID e)
 
{
 
	assert(e >= ROAD_ENGINES_INDEX && e < ROAD_ENGINES_INDEX + lengthof(_road_vehicle_info));
 
	return &_road_vehicle_info[e - ROAD_ENGINES_INDEX];
 
}
 

	
 
typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp)
 

	
 
/* Engine list manipulators - current implementation is only C wrapper of CBlobT<EngineID> class (helpers.cpp) */
 
void EngList_Create(EngineList *el);            ///< Creates engine list
 
void EngList_Destroy(EngineList *el);           ///< Deallocate and destroy engine list
 
uint EngList_Count(const EngineList *el);       ///< Returns number of items in the engine list
 
void EngList_Add(EngineList *el, EngineID eid); ///< Append one item at the end of engine list
 
EngineID* EngList_Items(EngineList *el);        ///< Returns engine list items as C array