src/engine_gui.h
author frosch
Sun, 23 Nov 2008 14:17:41 +0000
changeset 10360 049db04f827f
parent 9403 8cfca59c11f1
permissions -rw-r--r--
(svn r14611) -Fix (r13437)[FS#2421]: Store the age of a house in the map array instead of the construction year.
Note: Savegames from r13437 to now are broken and have a age of 255 years for a lot houses.
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     1
/* $Id$ */
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     2
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     3
/** @file engine_gui.h Engine GUI functions, used by build_vehicle_gui and autoreplace_gui */
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     4
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     5
#ifndef ENGINE_GUI_H
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     6
#define ENGINE_GUI_H
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     7
9403
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
     8
#include "sortlist_type.h"
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
     9
9403
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
    10
typedef GUIList<EngineID> GUIEngineList;
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    11
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    12
typedef int CDECL EngList_SortTypeFunction(const void*, const void*); ///< argument type for EngList_Sort()
9403
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
    13
void EngList_Sort(GUIEngineList *el, EngList_SortTypeFunction compare);  ///< qsort of the engine list
8cfca59c11f1 (svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
peter1138
parents: 9380
diff changeset
    14
void EngList_SortPartial(GUIEngineList *el, EngList_SortTypeFunction compare, uint begin, uint num_items); ///< qsort of specified portion of the engine list
9380
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    15
62dabf4a5b7e (svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
peter1138
parents:
diff changeset
    16
#endif /* ENGINE_GUI_H */