cl_tutorials.c File Reference

#include "client.h"
#include "cl_tutorials.h"
#include "ui/ui_main.h"
#include "../shared/parse.h"
Include dependency graph for cl_tutorials.c:

Go to the source code of this file.

Data Structures

struct  tutorial_s

Defines

#define MAX_TUTORIALS   16

Typedefs

typedef struct tutorial_s tutorial_t

Functions

static void TUT_GetTutorials_f (void)
static void TUT_List_f (void)
static void TUT_ListClick_f (void)
 click function for text tutoriallist in menu_tutorials.ufo
void TUT_InitStartup (void)
void TUT_ParseTutorials (const char *name, const char **text)

Variables

static tutorial_t tutorials [MAX_TUTORIALS]
static int numTutorials
static const value_t tutValues []

Detailed Description

Definition in file cl_tutorials.c.


Define Documentation

#define MAX_TUTORIALS   16

Definition at line 35 of file cl_tutorials.c.

Referenced by TUT_ParseTutorials().


Typedef Documentation

typedef struct tutorial_s tutorial_t

Function Documentation

static void TUT_GetTutorials_f ( void   )  [static]
void TUT_InitStartup ( void   ) 

Definition at line 81 of file cl_tutorials.c.

References Cmd_AddCommand(), TUT_GetTutorials_f(), TUT_List_f(), and TUT_ListClick_f().

Referenced by CL_InitLocal().

static void TUT_List_f ( void   )  [static]

Definition at line 51 of file cl_tutorials.c.

References Com_Printf(), i, name, and numTutorials.

Referenced by TUT_InitStartup().

static void TUT_ListClick_f ( void   )  [static]

click function for text tutoriallist in menu_tutorials.ufo

Definition at line 65 of file cl_tutorials.c.

References Cmd_Argc(), Cmd_Argv(), Cmd_ExecuteString(), Com_Printf(), numTutorials, and va().

Referenced by TUT_InitStartup().

void TUT_ParseTutorials ( const char *  name,
const char **  text 
)

Variable Documentation

int numTutorials [static]

Definition at line 37 of file cl_tutorials.c.

Referenced by TUT_GetTutorials_f(), TUT_List_f(), TUT_ListClick_f(), and TUT_ParseTutorials().

tutorial_t tutorials[MAX_TUTORIALS] [static]

Definition at line 36 of file cl_tutorials.c.

const value_t tutValues[] [static]
Initial value:
 {
    {"name", V_TRANSLATION_STRING, offsetof(tutorial_t, name), 0},
    {"sequence", V_STRING, offsetof(tutorial_t, sequence), 0},
    {NULL, 0, 0, 0}
}

Definition at line 90 of file cl_tutorials.c.


Generated by  doxygen 1.6.2