sv_mapcycle.c File Reference

#include "server.h"
#include "../shared/parse.h"
Include dependency graph for sv_mapcycle.c:

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_tmapcycleList
static int mapcycleCount

Typedef Documentation

typedef struct mapcycle_s mapcycle_t

map cycle list element


Function Documentation

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.

Todo:
check for maps and valid gametypes here
See also:
SV_MapcycleClear

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]
void SV_MapcycleClear ( void   ) 

Empty the mapcycle list.

See also:
SV_MapcycleAdd

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   ) 
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   ) 
static void SV_ParseMapcycle ( void   )  [static]

Variable Documentation

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().

map cycle linked list

Definition at line 14 of file sv_mapcycle.c.


Generated by  doxygen 1.6.2