UFO: Alien Invasion
|
Go to the source code of this file.
Data Structures | |
struct | mapcycle_s |
map cycle list element More... | |
Typedefs | |
typedef struct mapcycle_s | mapcycle_t |
map cycle list element More... | |
Functions | |
void | SV_NextMapcycle (void) |
Start the next map in the cycle. More... | |
void | SV_MapcycleClear (void) |
Empty the mapcycle list. More... | |
static void | SV_MapcycleAdd (const char *mapName, bool day, const char *gameType) |
Append a new mapname to the list of maps for the cycle. More... | |
static void | SV_ParseMapcycle (void) |
Parses the server mapcycle. More... | |
static void | SV_MapcycleList_f (void) |
static void | SV_MapcycleAdd_f (void) |
static void | SV_MapcycleNext_f (void) |
void | SV_MapcycleInit (void) |
Variables | |
static mapcycle_t * | mapcycleList |
static int | mapcycleCount |
typedef struct mapcycle_s mapcycle_t |
map cycle list element
|
static |
Append a new mapname to the list of maps for the cycle.
Definition at line 159 of file sv_mapcycle.cpp.
References Com_DPrintf(), mapcycle_s::day, DEBUG_SERVER, mapcycle_s::map, mapcycleCount, mapcycleList, Mem_PoolAllocType, Mem_PoolStrDup, mapcycle_s::next, sv_genericPool, and mapcycle_s::type.
Referenced by SV_MapcycleAdd_f(), and SV_ParseMapcycle().
Definition at line 239 of file sv_mapcycle.cpp.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), mapcycle_s::day, mapcycle_s::map, Q_streq, SV_CheckMap(), and SV_MapcycleAdd().
Referenced by SV_MapcycleInit().
Empty the mapcycle list.
Definition at line 137 of file sv_mapcycle.cpp.
References i, mapcycle_s::map, mapcycleCount, mapcycleList, Mem_Free, mapcycle_s::next, and mapcycle_s::type.
Referenced by SV_Clear(), and SV_MapcycleInit().
Definition at line 269 of file sv_mapcycle.cpp.
References Cmd_AddCommand(), SV_MapcycleAdd_f(), SV_MapcycleClear(), SV_MapcycleList_f(), SV_MapcycleNext_f(), and SV_ParseMapcycle().
Referenced by SV_Init().
Definition at line 228 of file sv_mapcycle.cpp.
References Com_Printf(), i, mapcycle_s::map, mapcycleCount, mapcycleList, mapcycle_s::next, and mapcycle_s::type.
Referenced by SV_MapcycleInit().
Definition at line 261 of file sv_mapcycle.cpp.
References Com_Printf(), mapcycleCount, and SV_NextMapcycle().
Referenced by SV_MapcycleInit().
Start the next map in the cycle.
Definition at line 20 of file sv_mapcycle.cpp.
References serverInstanceGame_s::assembly, Cbuf_AddText(), Com_DPrintf(), Com_Printf(), Com_SetGameType(), Com_sprintf(), Cvar_Set(), mapcycle_s::day, DEBUG_SERVER, FS_CheckFile(), i, mapcycle_s::map, mapcycleCount, mapcycleList, MAX_QPATH, cvar_s::modified, serverInstanceGame_s::name, mapcycle_s::next, Q_streq, Q_strncpyz(), sv, sv_gametype, and mapcycle_s::type.
Referenced by SV_Frame(), and SV_MapcycleNext_f().
Parses the server mapcycle.
Definition at line 181 of file sv_mapcycle.cpp.
References Com_Parse(), Com_Printf(), mapcycle_s::day, FS_FreeFile(), FS_LoadFile(), length, mapcycle_s::map, mapcycleCount, MAX_VAR, Q_streq, Q_strncpyz(), and SV_MapcycleAdd().
Referenced by SV_MapcycleInit().
|
static |
number of maps in the cycle
Definition at line 15 of file sv_mapcycle.cpp.
Referenced by SV_MapcycleAdd(), SV_MapcycleClear(), SV_MapcycleList_f(), SV_MapcycleNext_f(), SV_NextMapcycle(), and SV_ParseMapcycle().
|
static |
map cycle linked list
Definition at line 14 of file sv_mapcycle.cpp.
Referenced by SV_MapcycleAdd(), SV_MapcycleClear(), SV_MapcycleList_f(), and SV_NextMapcycle().