(svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp

This commit is contained in:
peter1138
2008-05-27 12:24:23 +00:00
parent 6d46851b61
commit f7a9c4f522
10 changed files with 57 additions and 35 deletions

16
src/engine_gui.h Normal file
View File

@@ -0,0 +1,16 @@
/* $Id$ */
/** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
#ifndef ENGINE_GUI_H
#define ENGINE_GUI_H
#include <vector>
typedef std::vector<EngineID> EngineList;
typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
void EngList_Sort(EngineList *el, EngList_SortTypeFunction compare); ///< qsort of the engine list
void EngList_SortPartial(EngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
#endif /* ENGINE_GUI_H */