#include "server.h"
#include "../shared/parse.h"
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 | |
Functions | |
void | SV_NextMapcycle (void) |
Start the next map in the cycle. | |
void | SV_MapcycleClear (void) |
Empty the mapcycle list. | |
static void | SV_MapcycleAdd (const char *mapName, qboolean day, const char *gameType) |
Append a new mapname to the list of maps for the cycle. | |
static void | SV_ParseMapcycle (void) |
Parses the server mapcycle. | |
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 void SV_MapcycleAdd | ( | const char * | mapName, | |
qboolean | day, | |||
const char * | gameType | |||
) | [static] |
Append a new mapname to the list of maps for the cycle.
Definition at line 166 of file sv_mapcycle.c.
References Com_DPrintf(), mapcycle_s::day, DEBUG_SERVER, mapcycle_s::map, mapcycleCount, Mem_PoolAlloc, Mem_PoolStrDup, mapcycle_s::next, sv_genericPool, and mapcycle_s::type.
Referenced by SV_MapcycleAdd_f(), and SV_ParseMapcycle().
static void SV_MapcycleAdd_f | ( | void | ) | [static] |
Definition at line 254 of file sv_mapcycle.c.
References Cmd_Argc(), Cmd_Argv(), Com_Printf(), mapcycle_s::day, map, qfalse, qtrue, SV_CheckMap(), and SV_MapcycleAdd().
Referenced by SV_MapcycleInit().
void SV_MapcycleClear | ( | void | ) |
Empty the mapcycle list.
Definition at line 142 of file sv_mapcycle.c.
References i, mapcycle_s::map, mapcycleCount, Mem_Free, mapcycle_s::next, and mapcycle_s::type.
Referenced by SV_Clear(), and SV_MapcycleInit().
void SV_MapcycleInit | ( | void | ) |
Definition at line 284 of file sv_mapcycle.c.
References Cmd_AddCommand(), SV_MapcycleAdd_f(), SV_MapcycleClear(), SV_MapcycleList_f(), SV_MapcycleNext_f(), and SV_ParseMapcycle().
Referenced by SV_Init().
static void SV_MapcycleList_f | ( | void | ) | [static] |
Definition at line 241 of file sv_mapcycle.c.
References Com_Printf(), i, mapcycle_s::map, mapcycleCount, mapcycle_s::next, and mapcycle_s::type.
Referenced by SV_MapcycleInit().
static void SV_MapcycleNext_f | ( | void | ) | [static] |
Definition at line 276 of file sv_mapcycle.c.
References Com_Printf(), mapcycleCount, and SV_NextMapcycle().
Referenced by SV_MapcycleInit().
void SV_NextMapcycle | ( | void | ) |
Start the next map in the cycle.
Definition at line 20 of file sv_mapcycle.c.
References serverInstanceGame_t::assembly, Cbuf_AddText(), Com_DPrintf(), Com_Printf(), Com_SetGameType(), Com_sprintf(), Cvar_Set(), mapcycle_s::day, DEBUG_SERVER, FS_CheckFile(), i, mapcycle_s::map, map, mapcycleCount, MAX_QPATH, cvar_s::modified, serverInstanceGame_t::name, mapcycle_s::next, Q_strncpyz(), qfalse, qtrue, sv, sv_gametype, and mapcycle_s::type.
Referenced by SV_Frame(), and SV_MapcycleNext_f().
static void SV_ParseMapcycle | ( | void | ) | [static] |
Parses the server mapcycle.
Definition at line 194 of file sv_mapcycle.c.
References byte, Com_Parse(), Com_Printf(), mapcycle_s::day, FS_FreeFile(), FS_LoadFile(), map, mapcycleCount, MAX_VAR, Q_strncpyz(), qfalse, qtrue, and SV_MapcycleAdd().
Referenced by SV_MapcycleInit().
int mapcycleCount [static] |
number of maps in the cycle
Definition at line 15 of file sv_mapcycle.c.
Referenced by SV_MapcycleAdd(), SV_MapcycleClear(), SV_MapcycleList_f(), SV_MapcycleNext_f(), SV_NextMapcycle(), and SV_ParseMapcycle().
mapcycle_t* mapcycleList [static] |
map cycle linked list
Definition at line 14 of file sv_mapcycle.c.