Crossfire Client, Trunk  R20693
Common client player commands.

Macros

#define H1(a)   draw_ext_info(NDI_BLACK, MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_NOTICE, a)
 
#define H2(a)   draw_ext_info(NDI_BLACK, MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_NOTICE, a)
 
#define LINE(a)   draw_ext_info(NDI_BLACK, MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_NOTICE, a)
 

Functions

static void command_help (const char *cpnext)
 
static void do_clienthelp_list ()
 
static int get_num_commands (void)
 
static const char * help_help (void)
 
static void show_help (const ConsoleCommand *cc)
 

Detailed Description

Macro Definition Documentation

◆ H1

Definition at line 31 of file p_cmd.c.

Referenced by do_clienthelp_list().

◆ H2

Definition at line 32 of file p_cmd.c.

Referenced by do_clienthelp_list(), and show_help().

◆ LINE

Definition at line 33 of file p_cmd.c.

Referenced by do_clienthelp_list(), and show_help().

Function Documentation

◆ command_help()

static void command_help ( const char *  cpnext)
static

Definition at line 89 of file p_cmd.c.

References do_clienthelp_list(), find_command(), MAX_BUF, send_command(), and show_help().

+ Here is the call graph for this function:

◆ do_clienthelp_list()

static void do_clienthelp_list ( )
static

Definition at line 39 of file p_cmd.c.

References ConsoleCommand::cat, COMM_CAT_MISC, get_cat_sorted_commands(), get_category_name(), get_num_commands(), H1, H2, LINE, MAX_BUF, and ConsoleCommand::name.

Referenced by command_help().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_num_commands()

static int get_num_commands ( void  )
static

Definition at line 348 of file p_cmd.c.

References num_commands.

Referenced by do_clienthelp_list().

+ Here is the caller graph for this function:

◆ help_help()

static const char* help_help ( void  )
static

Definition at line 113 of file p_cmd.c.

◆ show_help()

static void show_help ( const ConsoleCommand cc)
static

Definition at line 66 of file p_cmd.c.

References ConsoleCommand::desc, H2, ConsoleCommand::helpfunc, LINE, MAX_BUF, and ConsoleCommand::name.

Referenced by command_help().

+ Here is the caller graph for this function: