Changeset - r8774:d3e78cdfe4b0
[Not reviewed]
master
0 2 0
rubidium - 16 years ago 2008-03-28 16:39:19
rubidium@openttd.org
(svn r12473) -Codechange: move EngineList to a more logical location.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
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
src/openttd.h
Show inline comments
 
@@ -11,14 +11,12 @@
 
// Forward declarations of structs.
 
struct Waypoint;
 
typedef byte LandscapeID;
 
typedef uint16 EngineID;
 
typedef uint16 UnitID;
 

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

	
 
/* IDs used in Pools */
 
typedef uint16 WaypointID;
 
typedef uint16 EngineRenewID;
 

	
 
enum GameModes {
 
	GM_MENU,
0 comments (0 inline, 0 general)