#include "qcommon.h"
Go to the source code of this file.
Classes | |
struct | cmdalias_s |
struct | cmd_function_s |
Macros | |
#define | MAX_ALIAS_NAME 32 |
#define | ALIAS_LOOP_COUNT 16 |
Typedefs | |
typedef struct cmdalias_s | cmdalias_t |
typedef struct cmd_function_s | cmd_function_t |
Functions | |
void | Cmd_ForwardToServer (void) |
void | Cmd_Wait_f (void) |
void | Cbuf_Init (void) |
void | Cbuf_AddText (char *text) |
void | Cbuf_InsertText (char *text) |
void | Cbuf_CopyToDefer (void) |
void | Cbuf_InsertFromDefer (void) |
void | Cbuf_ExecuteText (int exec_when, char *text) |
void | Cbuf_Execute (void) |
void | Cbuf_AddEarlyCommands (qboolean clear) |
qboolean | Cbuf_AddLateCommands (void) |
void | Cmd_Exec_f (void) |
void | Cmd_Echo_f (void) |
void | Cmd_Alias_f (void) |
int | Cmd_Argc (void) |
char * | Cmd_Argv (int arg) |
char * | Cmd_Args (void) |
char * | Cmd_MacroExpandString (char *text) |
void | Cmd_TokenizeString (char *text, qboolean macroExpand) |
void | Cmd_AddCommand (char *cmd_name, xcommand_t function) |
void | Cmd_RemoveCommand (char *cmd_name) |
qboolean | Cmd_Exists (char *cmd_name) |
char * | Cmd_CompleteCommand (char *partial) |
void | Cmd_ExecuteString (char *text) |
void | Cmd_List_f (void) |
void | Cmd_Init (void) |
Variables | |
cmdalias_t * | cmd_alias |
qboolean | cmd_wait |
int | alias_count |
sizebuf_t | cmd_text |
byte | cmd_text_buf [8192] |
byte | defer_text_buf [8192] |
static int | cmd_argc |
static char * | cmd_argv [MAX_STRING_TOKENS] |
static char * | cmd_null_string = "" |
static char | cmd_args [MAX_STRING_CHARS] |
static cmd_function_t * | cmd_functions |
typedef struct cmd_function_s cmd_function_t |
typedef struct cmdalias_s cmdalias_t |
void Cbuf_AddText | ( | char * | text | ) |
Definition at line 90 of file cmd.c.
Referenced by Cbuf_AddEarlyCommands(), Cbuf_AddLateCommands(), Cbuf_ExecuteText(), Cbuf_InsertText(), CL_ConnectionlessPacket(), CL_ParseServerMessage(), Con_ToggleConsole_f(), ConsoleFunc(), ControlsResetDefaultsFunc(), FS_ExecAutoexec(), FS_SetGamedir(), JoinServerFunc(), Key_Console(), Key_Event(), Key_Message(), LoadGameCallback(), Qcommon_Frame(), Qcommon_Init(), SaveGameCallback(), StartGame(), StartServerActionFunc(), SV_InitGameProgs(), and SV_Nextserver().
Definition at line 194 of file cmd.c.
Referenced by CL_Init(), CL_ParseServerMessage(), CL_SendCommand(), ControlsResetDefaultsFunc(), Qcommon_Frame(), and Qcommon_Init().
Definition at line 78 of file cmd.c.
Referenced by Qcommon_Init().
Definition at line 159 of file cmd.c.
Referenced by SV_Begin_f().
void Cbuf_InsertText | ( | char * | text | ) |
Definition at line 114 of file cmd.c.
Referenced by Cbuf_ExecuteText(), Cbuf_InsertFromDefer(), Cmd_Exec_f(), Cmd_ExecuteString(), and Keys_MenuKey().
void Cmd_AddCommand | ( | char * | cmd_name, |
xcommand_t | function | ||
) |
Definition at line 691 of file cmd.c.
Referenced by CDAudio_Init(), CL_InitInput(), CL_InitLocal(), Cmd_Init(), Con_Init(), Cvar_Init(), FS_InitFilesystem(), IN_Init(), Key_Init(), M_Init(), Miniaudio_Init(), Qcommon_Init(), S_Init(), SCR_Init(), SV_InitOperatorCommands(), V_Init(), VID_Init(), and VID_LoadRefresh().
Definition at line 507 of file cmd.c.
Referenced by CD_f(), CL_Connect_f(), CL_Download_f(), CL_ForwardToServer_f(), CL_Packet_f(), CL_Precache_f(), CL_Rcon_f(), CL_Record_f(), CL_Setenv_f(), Cmd_Alias_f(), Cmd_Echo_f(), Cmd_Exec_f(), Cmd_ExecuteString(), Cmd_ForwardToServer(), Con_Dump_f(), Cvar_Command(), Cvar_Set_f(), FS_Dir_f(), FS_Link_f(), Key_Bind_f(), Key_Unbind_f(), Miniaudio_f(), S_Play(), SCR_Sky_f(), SCR_TimeRefresh_f(), SV_BeginDownload_f(), SV_ConSay_f(), SV_DumpUser_f(), SV_GameMap_f(), SV_InitGameProgs(), SV_Kick_f(), SV_Loadgame_f(), SV_Savegame_f(), SV_ServerRecord_f(), SV_SetMaster_f(), SV_SetPlayer(), SVC_RemoteCommand(), V_Gun_Model_f(), and VID_LoadRefresh().
char* Cmd_Args | ( | void | ) |
Definition at line 531 of file cmd.c.
Referenced by CL_ForwardToServer_f(), Cmd_ForwardToServer(), SV_ConSay_f(), and SV_InitGameProgs().
char* Cmd_Argv | ( | int | arg | ) |
Definition at line 517 of file cmd.c.
Referenced by CD_f(), CL_Connect_f(), CL_ConnectionlessPacket(), CL_Download_f(), CL_ForwardToServer_f(), CL_Packet_f(), CL_Precache_f(), CL_Rcon_f(), CL_Record_f(), CL_Setenv_f(), Cmd_Alias_f(), Cmd_Echo_f(), Cmd_Exec_f(), Cmd_ForwardToServer(), Com_Error_f(), Con_Dump_f(), Cvar_Command(), Cvar_Set_f(), FS_Dir_f(), FS_Link_f(), IN_Impulse(), Key_Bind_f(), Key_Unbind_f(), KeyDown(), KeyUp(), Miniaudio_f(), Rcon_Validate(), S_Play(), SCR_Sky_f(), SV_Baselines_f(), SV_Begin_f(), SV_BeginDownload_f(), SV_Configstrings_f(), SV_ConnectionlessPacket(), SV_DemoMap_f(), SV_ExecuteUserCommand(), SV_GameMap_f(), SV_InitGameProgs(), SV_Loadgame_f(), SV_Map_f(), SV_Nextserver_f(), SV_Savegame_f(), SV_ServerRecord_f(), SV_SetMaster_f(), SV_SetPlayer(), SVC_DirectConnect(), SVC_Info(), SVC_RemoteCommand(), V_Gun_Model_f(), and VID_LoadRefresh().
char* Cmd_CompleteCommand | ( | char * | partial | ) |
void Cmd_ExecuteString | ( | char * | text | ) |
Definition at line 811 of file cmd.c.
Referenced by Cbuf_Execute(), Cbuf_ExecuteText(), Cmd_ExecuteString(), and SVC_RemoteCommand().
char* Cmd_MacroExpandString | ( | char * | text | ) |
void Cmd_RemoveCommand | ( | char * | cmd_name | ) |
Definition at line 724 of file cmd.c.
Referenced by Miniaudio_Shutdown(), S_Shutdown(), and VID_LoadRefresh().
Definition at line 620 of file cmd.c.
Referenced by CL_ConnectionlessPacket(), Cmd_ExecuteString(), SV_ConnectionlessPacket(), and SV_ExecuteUserCommand().
int alias_count |
Definition at line 40 of file cmd.c.
Referenced by Cbuf_Execute(), and Cmd_ExecuteString().
cmdalias_t* cmd_alias |
Definition at line 35 of file cmd.c.
Referenced by Cmd_Alias_f(), Cmd_CompleteCommand(), and Cmd_ExecuteString().
|
static |
Definition at line 495 of file cmd.c.
Referenced by Cmd_Argc(), Cmd_Argv(), and Cmd_TokenizeString().
|
static |
Definition at line 498 of file cmd.c.
Referenced by Cmd_Args(), and Cmd_TokenizeString().
|
static |
Definition at line 496 of file cmd.c.
Referenced by Cmd_Argv(), Cmd_ExecuteString(), and Cmd_TokenizeString().
|
static |
Definition at line 500 of file cmd.c.
Referenced by Cmd_AddCommand(), Cmd_CompleteCommand(), Cmd_ExecuteString(), Cmd_Exists(), Cmd_List_f(), and Cmd_RemoveCommand().
|
static |
Definition at line 497 of file cmd.c.
Referenced by Cmd_Argv().
sizebuf_t cmd_text |
Definition at line 68 of file cmd.c.
Referenced by Cbuf_AddText(), Cbuf_CopyToDefer(), Cbuf_Execute(), Cbuf_Init(), and Cbuf_InsertText().
byte cmd_text_buf[8192] |
Definition at line 69 of file cmd.c.
Referenced by Cbuf_CopyToDefer(), and Cbuf_Init().
qboolean cmd_wait |
Definition at line 37 of file cmd.c.
Referenced by Cbuf_Execute(), and Cmd_Wait_f().
byte defer_text_buf[8192] |
Definition at line 71 of file cmd.c.
Referenced by Cbuf_CopyToDefer(), and Cbuf_InsertFromDefer().