\hypertarget{c__dispatch_8cpp}{
\section{common/c\_\-dispatch.cpp File Reference}
\label{da/d68/c__dispatch_8cpp}\index{common/c\_\-dispatch.cpp@{common/c\_\-dispatch.cpp}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{c__dispatch_8cpp_a5a0137bd347ec0cde72cc5225a493b98}{IMPLEMENT\_\-CLASS} (\hyperlink{classDConsoleCommand}{DConsoleCommand}, \hyperlink{classDObject}{DObject}) IMPLEMENT\_\-CLASS(\hyperlink{classDConsoleAlias}{DConsoleAlias}
\item 
\hyperlink{classDConsoleCommand}{DConsoleCommand} EXTERN\_\-CVAR(lookspring) typedef std command\_\-map\_\-t \& \hyperlink{c__dispatch_8cpp_a29b266a9002c1a3ab923dbfdf10dd578}{Commands} ()
\item 
unsigned int \hyperlink{c__dispatch_8cpp_a34cd97766f394eb7b3f0eac9e55da31e}{MakeKey} (const char $\ast$\hyperlink{client_2src_2v__palette_8cpp_a06ccf22bb96191a8ce5f85600b246060}{s})
\item 
int \hyperlink{c__dispatch_8cpp_a9228ae27aad504622a5ca011fb4ce1b1}{GetActionBit} (unsigned int key)
\item 
void \hyperlink{c__dispatch_8cpp_a6103c1a834d913ad241cc410a0966507}{C\_\-DoCommand} (const char $\ast$cmd)
\item 
void \hyperlink{c__dispatch_8cpp_ae5a5900dcff1e3849cff45346c5b83a6}{AddCommandString} (\hyperlink{sv__main_8cpp_a77792b18743abf1ff3aeeffa24aa45ec}{std::string} cmd, bool onlycvars)
\item 
\hyperlink{c__dispatch_8cpp_ac287a1e698fd22ff9cee0ca9dfbe0a4b}{BEGIN\_\-COMMAND} (exec)
\item 
\hyperlink{c__dispatch_8cpp_ad219680f65c4b974a04a9f040371d9fb}{END\_\-COMMAND} (exec) BEGIN\_\-COMMAND(if)
\item 
\hyperlink{c__dispatch_8cpp_a22aaa318f326092252ae7755c0f8f5d9}{END\_\-COMMAND} (if) const char $\ast$ParseString2(const char $\ast$data)
\item 
const char $\ast$ \hyperlink{c__dispatch_8cpp_a7c12502d69ce4fb313e39c4bfaa944e5}{ParseString} (const char $\ast$data)
\item 
\hyperlink{sv__main_8cpp_a77792b18743abf1ff3aeeffa24aa45ec}{std::string} \hyperlink{c__dispatch_8cpp_a7fc3f5b4c8b6da26c6dd9a36ffdbc879}{BuildString} (size\_\-t argc, const char $\ast$$\ast$argv)
\item 
\hyperlink{sv__main_8cpp_a77792b18743abf1ff3aeeffa24aa45ec}{std::string} \hyperlink{c__dispatch_8cpp_a01582b50861c376d84cf34cdd8dea133}{BuildString} (size\_\-t argc, std::vector$<$ \hyperlink{sv__main_8cpp_a77792b18743abf1ff3aeeffa24aa45ec}{std::string} $>$ args)
\item 
\hyperlink{c__dispatch_8cpp_a9d4a53c1381bc73c294f116938edfc12}{BEGIN\_\-COMMAND} (alias)
\item 
\hyperlink{c__dispatch_8cpp_a4ae6753fac78f909b2205e0a1e79684f}{END\_\-COMMAND} (alias) BEGIN\_\-COMMAND(cmdlist)
\item 
\hyperlink{c__dispatch_8cpp_a073116315a5251e1c0938ff095362b12}{END\_\-COMMAND} (cmdlist) BEGIN\_\-COMMAND(key)
\item 
\hyperlink{c__dispatch_8cpp_a6046573ff8a206e08cfa674ef85c618e}{END\_\-COMMAND} (key) void C\_\-ExecCmdLineParams(bool onlyset
\item 
\hyperlink{c__dispatch_8cpp_a35e7c12dcd29ed2054d2aeaa986982af}{BEGIN\_\-COMMAND} (puke)
\item 
\hyperlink{c__dispatch_8cpp_aee4b4446576bf46a661e30b04a01abf6}{END\_\-COMMAND} (puke) BEGIN\_\-COMMAND(error)
\item 
\hyperlink{c__dispatch_8cpp_a5fef04a09eaadfafcd88ec0ee1063871}{END\_\-COMMAND} (error) VERSION\_\-CONTROL(c\_\-dispatch\_\-cpp
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structActionBits}{ActionBits} \hyperlink{c__dispatch_8cpp_a80e5cdeba9b43cbb1ab439b16e779fcb}{actionbits} \mbox{[}NUM\_\-ACTIONS\mbox{]}
\item 
\hyperlink{doomtype_8h_a0c8186d9b9b7880309c27230bbb5e69d}{byte} \hyperlink{c__dispatch_8cpp_ae3f341dfd54ea7f2aaffdad05b15384e}{Actions} \mbox{[}NUM\_\-ACTIONS\mbox{]}
\item 
bool \hyperlink{c__dispatch_8cpp_a9719fb0b5000a37cfe68432ce9c52f59}{safemode} = false
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{c__dispatch_8cpp_ae5a5900dcff1e3849cff45346c5b83a6}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!AddCommandString@{AddCommandString}}
\index{AddCommandString@{AddCommandString}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{AddCommandString}]{\setlength{\rightskip}{0pt plus 5cm}void AddCommandString (
\begin{DoxyParamCaption}
\item[{{\bf std::string}}]{cmd, }
\item[{bool}]{onlycvars}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_ae5a5900dcff1e3849cff45346c5b83a6}
\hypertarget{c__dispatch_8cpp_ac287a1e698fd22ff9cee0ca9dfbe0a4b}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!BEGIN\_\-COMMAND@{BEGIN\_\-COMMAND}}
\index{BEGIN\_\-COMMAND@{BEGIN\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{BEGIN\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}BEGIN\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{exec}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_ac287a1e698fd22ff9cee0ca9dfbe0a4b}
\hypertarget{c__dispatch_8cpp_a35e7c12dcd29ed2054d2aeaa986982af}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!BEGIN\_\-COMMAND@{BEGIN\_\-COMMAND}}
\index{BEGIN\_\-COMMAND@{BEGIN\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{BEGIN\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}BEGIN\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{puke}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a35e7c12dcd29ed2054d2aeaa986982af}
\hypertarget{c__dispatch_8cpp_a9d4a53c1381bc73c294f116938edfc12}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!BEGIN\_\-COMMAND@{BEGIN\_\-COMMAND}}
\index{BEGIN\_\-COMMAND@{BEGIN\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{BEGIN\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}BEGIN\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{alias}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a9d4a53c1381bc73c294f116938edfc12}
\hypertarget{c__dispatch_8cpp_a01582b50861c376d84cf34cdd8dea133}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!BuildString@{BuildString}}
\index{BuildString@{BuildString}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{BuildString}]{\setlength{\rightskip}{0pt plus 5cm}{\bf std::string} BuildString (
\begin{DoxyParamCaption}
\item[{size\_\-t}]{argc, }
\item[{std::vector$<$ {\bf std::string} $>$}]{args}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a01582b50861c376d84cf34cdd8dea133}
\hypertarget{c__dispatch_8cpp_a7fc3f5b4c8b6da26c6dd9a36ffdbc879}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!BuildString@{BuildString}}
\index{BuildString@{BuildString}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{BuildString}]{\setlength{\rightskip}{0pt plus 5cm}{\bf std::string} BuildString (
\begin{DoxyParamCaption}
\item[{size\_\-t}]{argc, }
\item[{const char $\ast$$\ast$}]{argv}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a7fc3f5b4c8b6da26c6dd9a36ffdbc879}
\hypertarget{c__dispatch_8cpp_a6103c1a834d913ad241cc410a0966507}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!C\_\-DoCommand@{C\_\-DoCommand}}
\index{C\_\-DoCommand@{C\_\-DoCommand}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{C\_\-DoCommand}]{\setlength{\rightskip}{0pt plus 5cm}void C\_\-DoCommand (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{cmd}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a6103c1a834d913ad241cc410a0966507}
\hypertarget{c__dispatch_8cpp_a29b266a9002c1a3ab923dbfdf10dd578}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!Commands@{Commands}}
\index{Commands@{Commands}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{Commands}]{\setlength{\rightskip}{0pt plus 5cm}{\bf DConsoleCommand} EXTERN\_\-CVAR (lookspring) typedef std command\_\-map\_\-t\& Commands (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a29b266a9002c1a3ab923dbfdf10dd578}
\hypertarget{c__dispatch_8cpp_a5fef04a09eaadfafcd88ec0ee1063871}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{error}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a5fef04a09eaadfafcd88ec0ee1063871}
\hypertarget{c__dispatch_8cpp_a4ae6753fac78f909b2205e0a1e79684f}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{alias}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a4ae6753fac78f909b2205e0a1e79684f}
\hypertarget{c__dispatch_8cpp_a073116315a5251e1c0938ff095362b12}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{cmdlist}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a073116315a5251e1c0938ff095362b12}
\hypertarget{c__dispatch_8cpp_aee4b4446576bf46a661e30b04a01abf6}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{puke}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_aee4b4446576bf46a661e30b04a01abf6}
\hypertarget{c__dispatch_8cpp_ad219680f65c4b974a04a9f040371d9fb}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{exec}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_ad219680f65c4b974a04a9f040371d9fb}
\hypertarget{c__dispatch_8cpp_a22aaa318f326092252ae7755c0f8f5d9}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{if}]{}
\end{DoxyParamCaption}
) const}}
\label{da/d68/c__dispatch_8cpp_a22aaa318f326092252ae7755c0f8f5d9}
\hypertarget{c__dispatch_8cpp_a6046573ff8a206e08cfa674ef85c618e}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!END\_\-COMMAND@{END\_\-COMMAND}}
\index{END\_\-COMMAND@{END\_\-COMMAND}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{END\_\-COMMAND}]{\setlength{\rightskip}{0pt plus 5cm}END\_\-COMMAND (
\begin{DoxyParamCaption}
\item[{key}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a6046573ff8a206e08cfa674ef85c618e}
\hypertarget{c__dispatch_8cpp_a9228ae27aad504622a5ca011fb4ce1b1}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!GetActionBit@{GetActionBit}}
\index{GetActionBit@{GetActionBit}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{GetActionBit}]{\setlength{\rightskip}{0pt plus 5cm}int GetActionBit (
\begin{DoxyParamCaption}
\item[{unsigned int}]{key}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a9228ae27aad504622a5ca011fb4ce1b1}
\hypertarget{c__dispatch_8cpp_a5a0137bd347ec0cde72cc5225a493b98}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!IMPLEMENT\_\-CLASS@{IMPLEMENT\_\-CLASS}}
\index{IMPLEMENT\_\-CLASS@{IMPLEMENT\_\-CLASS}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{IMPLEMENT\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}IMPLEMENT\_\-CLASS (
\begin{DoxyParamCaption}
\item[{{\bf DConsoleCommand}}]{, }
\item[{{\bf DObject}}]{}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a5a0137bd347ec0cde72cc5225a493b98}
\hypertarget{c__dispatch_8cpp_a34cd97766f394eb7b3f0eac9e55da31e}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!MakeKey@{MakeKey}}
\index{MakeKey@{MakeKey}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{MakeKey}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int MakeKey (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{s}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a34cd97766f394eb7b3f0eac9e55da31e}
\hypertarget{c__dispatch_8cpp_a7c12502d69ce4fb313e39c4bfaa944e5}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!ParseString@{ParseString}}
\index{ParseString@{ParseString}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{ParseString}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ ParseString (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{data}
\end{DoxyParamCaption}
)}}
\label{da/d68/c__dispatch_8cpp_a7c12502d69ce4fb313e39c4bfaa944e5}


\subsection{Variable Documentation}
\hypertarget{c__dispatch_8cpp_a80e5cdeba9b43cbb1ab439b16e779fcb}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!actionbits@{actionbits}}
\index{actionbits@{actionbits}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{actionbits}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf ActionBits} {\bf actionbits}\mbox{[}NUM\_\-ACTIONS\mbox{]}}}
\label{da/d68/c__dispatch_8cpp_a80e5cdeba9b43cbb1ab439b16e779fcb}
{\bfseries Initial value:}
\begin{DoxyCode}

{
        { 0x00409, ACTION_USE,            "use" },
        { 0x0074d, ACTION_BACK,           "back" },
        { 0x007e4, ACTION_LEFT,           "left" },
        { 0x00816, ACTION_JUMP,           "jump" },
        { 0x0106d, ACTION_KLOOK,          "klook" },
        { 0x0109d, ACTION_MLOOK,          "mlook" },
        { 0x010d8, ACTION_RIGHT,          "right" },
        { 0x0110a, ACTION_SPEED,          "speed" },
        { 0x01fc5, ACTION_ATTACK,         "attack" },
        { 0x021ae, ACTION_LOOKUP,         "lookup" },
        { 0x021fe, ACTION_MOVEUP,         "moveup" },
        { 0x02315, ACTION_STRAFE,         "strafe" },
        { 0x041c4, ACTION_FORWARD,        "forward" },
        { 0x08788, ACTION_LOOKDOWN,       "lookdown" },
        { 0x088c4, ACTION_MOVELEFT,       "moveleft" },
        { 0x088c8, ACTION_MOVEDOWN,       "movedown" },
        { 0x11268, ACTION_MOVERIGHT,  "moveright" },
        { 0x2314d, ACTION_SHOWSCORES, "showscores" }
}
\end{DoxyCode}
\hypertarget{c__dispatch_8cpp_ae3f341dfd54ea7f2aaffdad05b15384e}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!Actions@{Actions}}
\index{Actions@{Actions}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{Actions}]{\setlength{\rightskip}{0pt plus 5cm}{\bf byte} {\bf Actions}\mbox{[}NUM\_\-ACTIONS\mbox{]}}}
\label{da/d68/c__dispatch_8cpp_ae3f341dfd54ea7f2aaffdad05b15384e}
\hypertarget{c__dispatch_8cpp_a9719fb0b5000a37cfe68432ce9c52f59}{
\index{c\_\-dispatch.cpp@{c\_\-dispatch.cpp}!safemode@{safemode}}
\index{safemode@{safemode}!c_dispatch.cpp@{c\_\-dispatch.cpp}}
\subsubsection[{safemode}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf safemode} = false}}
\label{da/d68/c__dispatch_8cpp_a9719fb0b5000a37cfe68432ce9c52f59}
