DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
cmd_state_t Struct Reference

command interpreter state - the tokenizing and execution of commands, as well as pointers to which cvars and aliases they can access More...

#include <cmd.h>

Collaboration diagram for cmd_state_t:

Data Fields

int argc
const char * args
const char * argv [MAX_ARGS]
cmd_buf_tcbuf
unsigned cmd_flagsmask
 cmd flags that identify this interpreter
const char * cmdline
struct cvar_state_s * cvars
 which cvar system is this cmd state able to access? (&cvars_all or &cvars_null)
unsigned cvars_flagsmask
 which CVAR_* flags should be visible to this interpreter? (CF_CLIENT | CF_SERVER, or just CF_SERVER)
cmd_function_tengine_functions
qbool(* Handle )(struct cmd_state_s *, struct cmd_function_s *, const char *, size_t, enum cmd_source_s)
struct mempool_s * mempool
const char * null_string
cmd_source_t source
cmd_userdefined_tuserdefined
 possible csqc functions and aliases to execute

Detailed Description

command interpreter state - the tokenizing and execution of commands, as well as pointers to which cvars and aliases they can access

Definition at line 126 of file cmd.h.

Field Documentation

◆ argc

int cmd_state_t::argc

Definition at line 130 of file cmd.h.

◆ args

const char* cmd_state_t::args

Definition at line 134 of file cmd.h.

◆ argv

const char* cmd_state_t::argv[MAX_ARGS]

Definition at line 132 of file cmd.h.

◆ cbuf

cmd_buf_t* cmd_state_t::cbuf

Definition at line 137 of file cmd.h.

◆ cmd_flagsmask

unsigned cmd_state_t::cmd_flagsmask

cmd flags that identify this interpreter

Definition at line 145 of file cmd.h.

◆ cmdline

const char* cmd_state_t::cmdline

Definition at line 131 of file cmd.h.

◆ cvars

struct cvar_state_s* cmd_state_t::cvars

which cvar system is this cmd state able to access? (&cvars_all or &cvars_null)

Definition at line 143 of file cmd.h.

◆ cvars_flagsmask

unsigned cmd_state_t::cvars_flagsmask

which CVAR_* flags should be visible to this interpreter? (CF_CLIENT | CF_SERVER, or just CF_SERVER)

Definition at line 144 of file cmd.h.

◆ engine_functions

cmd_function_t* cmd_state_t::engine_functions

Definition at line 141 of file cmd.h.

◆ Handle

qbool(* cmd_state_t::Handle) (struct cmd_state_s *, struct cmd_function_s *, const char *, size_t, enum cmd_source_s)

Definition at line 147 of file cmd.h.

◆ mempool

struct mempool_s* cmd_state_t::mempool

Definition at line 128 of file cmd.h.

◆ null_string

const char* cmd_state_t::null_string

Definition at line 133 of file cmd.h.

◆ source

cmd_source_t cmd_state_t::source

Definition at line 135 of file cmd.h.

◆ userdefined

cmd_userdefined_t* cmd_state_t::userdefined

possible csqc functions and aliases to execute

Definition at line 139 of file cmd.h.


The documentation for this struct was generated from the following file: