77void Cmd_PrintDebugCommands(
void);
86typedef struct cmdList_s {
99 virtual void onAdd (
const char* cmdName) = 0;
171void Cmd_TokenizeString(
const char* text,
bool macroExpand,
bool replaceWhitespaces =
true);
208#include "ScopedCommand.h"
void Cmd_ForwardToServer(void)
adds the current command line as a clc_stringcmd to the client message. things like action,...
Listener for command changes.
virtual void onAdd(const char *cmdName)=0
virtual void onRemove(const char *cmdName)=0
void Cmd_ExecuteString(const char *text,...)
A complete command line has been parsed, so try to execute it.
bool Cmd_Exists(const char *cmdName)
Checks whether a function exists already.
const char * Cmd_Argv(int arg)
Returns a given argument.
void Cmd_WriteAliases(qFILE *f)
Write lines containing "aliasa alias value" for all aliases with the archive flag set to true.
void Cbuf_InsertText(const char *text)
Adds command text immediately after the current command.
void Cmd_AddParamCompleteFunction(const char *cmdName, int(*function)(const char *partial, const char **match))
void Cmd_TableAddList(const cmdList_t *cmdList)
void Cmd_RemoveCommand(const char *cmdName)
Removes a command from script interface.
void Cmd_Dummy_f(void)
Dummy binding if you don't want unknown commands forwarded to the server.
void Cbuf_Execute(void)
Pulls off terminated lines of text from the command buffer and sends them through Cmd_ExecuteString...
void Cmd_AddUserdata(const char *cmdName, void *userdata)
Adds userdata to the console command.
void Cmd_TokenizeString(const char *text, bool macroExpand, bool replaceWhitespaces)
Parses the given string into command line tokens.
int Cmd_CompleteCommandParameters(const char *command, const char *partial, const char **match)
Unix like tab completion for console commands parameters.
void Cmd_RegisterCmdListener(CmdListenerPtr listener)
Registers a command listener.
void Cbuf_AddEarlyCommands(bool clear)
Adds command line parameters as script statements Commands lead with a +, and continue until another ...
void Cmd_UnRegisterCmdListener(CmdListenerPtr listener)
Unregisters a command listener.
const char * Cmd_Args(void)
Returns a single string containing argv(1) to argv(argc()-1).
bool Cmd_GenericCompleteFunction(char const *candidate, char const *partial, char const **match)
void Cmd_TableCheck(void)
Check both the functiontable and the associated hashtable for invalid entries.
void Cbuf_Init(void)
allocates an initial text buffer that will grow as needed
int Cmd_Argc(void)
Return the number of arguments of the current command. "command parameter" will result in a argc of 2...
void * Cmd_GetUserdata(const char *cmdName)
Fetches the userdata for a console command.
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
void Cbuf_InsertFromDefer(void)
Copies back any deferred commands.
bool Cbuf_AddLateCommands(void)
Adds command line parameters as script statements.
void Cbuf_CopyToDefer(void)
Defers any outstanding commands.
void Cmd_vExecuteString(const char *fmt, va_list ap)
void Cmd_BufClear(void)
Clears the argv vector and set argc to zero.
void Cbuf_AddText(const char *format,...)
Adds command text at the end of the buffer.
const char * Cmd_GetCommandDesc(const char *cmdName)
Returns the command description for a given command.
void Cmd_TableRemoveList(const cmdList_t *cmdList)
void * Cmd_Userdata(void)
Return the userdata of the called command.
int Cmd_CompleteCommand(const char *partial, const char **match)
Unix like tab completion for console commands.
SharedPtr< CmdListener > CmdListenerPtr
void format(__printf__, 1, 2)))
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)