|
UFO: Alien Invasion
|

Go to the source code of this file.
Enumerations | |
| enum | ui_gamemode_t { GAMEMODE_NONE , GAMEMODE_SKIRMISH , GAMEMODE_MULTIPLAYER , GAMEMODE_CAMPAIGN , MAX_GAMEMODE } |
Functions | |
| static void | UI_MapInfoGetNext (int step) |
| static void | UI_MapInfo (int step) |
| Prints the map info for the server creation dialogue. | |
| static void | UI_GetMaps_f (void) |
| static void | UI_NextMap_f (void) |
| Select the next available map. | |
| static void | UI_PreviousMap_f (void) |
| Select the previous available map. | |
| static void | UI_SelectMap_f (void) |
| static bool | UI_MapGameModeCondition (ui_gamemode_t gameMode, const mapDef_t *mapDef) |
| Helper function to apply gameMode filter on map definitions. | |
| static void | UI_ListMaps_f (void) |
| List available maps. | |
| void | MAP_InitCallbacks (void) |
| Registers UI Callbacks for battlescape map selection. | |
| void | MAP_ShutdownCallbacks (void) |
| Unregisters UI Callbacks of battlescape map selection. | |
Variables | |
| static const cmdList_t | mapCallbacks [] |
| List of UI Callbacks of battlescape map selection. | |
| enum ui_gamemode_t |
| Enumerator | |
|---|---|
| GAMEMODE_NONE | |
| GAMEMODE_SKIRMISH | |
| GAMEMODE_MULTIPLAYER | |
| GAMEMODE_CAMPAIGN | |
| MAX_GAMEMODE | |
Definition at line 29 of file cl_map_callbacks.cpp.
Registers UI Callbacks for battlescape map selection.
Definition at line 258 of file cl_map_callbacks.cpp.
References Cmd_TableAddList(), and mapCallbacks.
Referenced by GAME_InitStartup().
Unregisters UI Callbacks of battlescape map selection.
Definition at line 266 of file cl_map_callbacks.cpp.
References Cmd_TableRemoveList(), and mapCallbacks.
Referenced by GAME_Shutdown().
Definition at line 108 of file cl_map_callbacks.cpp.
References UI_MapInfo().
List available maps.
Definition at line 188 of file cl_map_callbacks.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), csi, mapDef_t::description, FS_CheckFile(), GAMEMODE_CAMPAIGN, GAMEMODE_MULTIPLAYER, GAMEMODE_NONE, GAMEMODE_SKIRMISH, mapDef_t::id, MapDef_ForeachCondition, mapDef_t::mapTheme, MAX_VAR, Q_streq, Q_strncpyz(), R_ImageExists(), UI_ExecuteConfunc(), and UI_MapGameModeCondition().
|
inlinestatic |
Helper function to apply gameMode filter on map definitions.
| [in] | gameMode | game mode constant |
| [in] | mapDef | Map definition pointer |
true if the definition is enabled in the specified game mode false otherwise Definition at line 172 of file cl_map_callbacks.cpp.
References mapDef_t::campaign, GAMEMODE_CAMPAIGN, GAMEMODE_MULTIPLAYER, GAMEMODE_SKIRMISH, mapDef_t::multiplayer, and mapDef_t::singleplayer.
Referenced by UI_ListMaps_f().
Prints the map info for the server creation dialogue.
Definition at line 66 of file cl_map_callbacks.cpp.
References cls, csi, Cvar_Set(), mapDef_t::id, LIST_GetRandom(), cgame_export_t::MapInfo(), mapDef_t::mapTheme, mapDef_t::params, R_ImageExists(), and UI_MapInfoGetNext().
Referenced by UI_GetMaps_f(), UI_NextMap_f(), UI_PreviousMap_f(), and UI_SelectMap_f().
Definition at line 37 of file cl_map_callbacks.cpp.
References cls, Com_GetMapDefByIDX(), csi, FS_CheckFile(), and mapDef_t::mapTheme.
Referenced by UI_MapInfo().
Select the next available map.
Definition at line 116 of file cl_map_callbacks.cpp.
References UI_MapInfo().
Select the previous available map.
Definition at line 124 of file cl_map_callbacks.cpp.
References UI_MapInfo().
Definition at line 129 of file cl_map_callbacks.cpp.
References cls, Cmd_Argc(), Cmd_Argv(), Com_Printf(), csi, i, mapDef_t::id, MapDef_Foreach, mapDef_t::mapTheme, Q_streq, and UI_MapInfo().
|
static |
List of UI Callbacks of battlescape map selection.
Definition at line 242 of file cl_map_callbacks.cpp.
Referenced by MAP_InitCallbacks(), and MAP_ShutdownCallbacks().