UFO: Alien Invasion
cl_map_callbacks.cpp File Reference
#include "cl_map_callbacks.h"
#include "../client.h"
#include "cl_game.h"
Include dependency graph for cl_map_callbacks.cpp:

Go to the source code of this file.

Functions

static void UI_MapInfoGetNext (int step)
 
static void UI_MapInfo (int step)
 Prints the map info for the server creation dialogue. More...
 
static void UI_GetMaps_f (void)
 
static void UI_NextMap_f (void)
 Select the next available map. More...
 
static void UI_PreviousMap_f (void)
 Select the previous available map. More...
 
static void UI_SelectMap_f (void)
 
static void UI_RequestMapList_f (void)
 
void MAP_InitCallbacks (void)
 Registers UI Callbacks for battlescape map selection. More...
 
void MAP_ShutdownCallbacks (void)
 Unregisters UI Callbacks of battlescape map selection. More...
 

Variables

static const cmdList_t mapCallbacks []
 List of UI Callbacks of battlescape map selection. More...
 

Function Documentation

◆ MAP_InitCallbacks()

void MAP_InitCallbacks ( void  )

Registers UI Callbacks for battlescape map selection.

Definition at line 214 of file cl_map_callbacks.cpp.

References Cmd_TableAddList(), and mapCallbacks.

Referenced by GAME_InitStartup().

◆ MAP_ShutdownCallbacks()

void MAP_ShutdownCallbacks ( void  )

Unregisters UI Callbacks of battlescape map selection.

Definition at line 222 of file cl_map_callbacks.cpp.

References Cmd_TableRemoveList(), and mapCallbacks.

Referenced by GAME_Shutdown().

◆ UI_GetMaps_f()

static void UI_GetMaps_f ( void  )
static

Definition at line 100 of file cl_map_callbacks.cpp.

References UI_MapInfo().

◆ UI_MapInfo()

static void UI_MapInfo ( int  step)
static

◆ UI_MapInfoGetNext()

static void UI_MapInfoGetNext ( int  step)
static

◆ UI_NextMap_f()

static void UI_NextMap_f ( void  )
static

Select the next available map.

Definition at line 108 of file cl_map_callbacks.cpp.

References UI_MapInfo().

◆ UI_PreviousMap_f()

static void UI_PreviousMap_f ( void  )
static

Select the previous available map.

Definition at line 116 of file cl_map_callbacks.cpp.

References UI_MapInfo().

◆ UI_RequestMapList_f()

◆ UI_SelectMap_f()

Variable Documentation

◆ mapCallbacks

const cmdList_t mapCallbacks[]
static
Initial value:
= {
{"mn_getmaps", UI_GetMaps_f, "The initial map to show"},
{"mn_nextmap", UI_NextMap_f, "Switch to the next valid map for the selected gametype"},
{"mn_prevmap", UI_PreviousMap_f, "Switch to the previous valid map for the selected gametype"},
{"mn_selectmap", UI_SelectMap_f, "Switch to the map given by the parameter - may be invalid for the current gametype"},
{"mn_requestmaplist", UI_RequestMapList_f, "Request to send the list of available maps for the current gametype to a command."},
{nullptr, nullptr, nullptr}
}
static void UI_SelectMap_f(void)
static void UI_NextMap_f(void)
Select the next available map.
static void UI_GetMaps_f(void)
static void UI_RequestMapList_f(void)
static void UI_PreviousMap_f(void)
Select the previous available map.

List of UI Callbacks of battlescape map selection.

Definition at line 200 of file cl_map_callbacks.cpp.

Referenced by MAP_InitCallbacks(), and MAP_ShutdownCallbacks().