Crossfire Client, Trunk
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)
 
void config_check (void)
 
static void do_clienthelp_list ()
 
static int get_num_commands (void)
 
static const char * help_help (void)
 
void map_check_resize (void)
 
static void show_help (const ConsoleCommand *cc)
 

Variables

bool arm_mapedit = false
 

Detailed Description

Macro Definition Documentation

◆ H1

Definition at line 31 of file p_cmd.c.

◆ H2

Definition at line 32 of file p_cmd.c.

◆ LINE

Definition at line 33 of file p_cmd.c.

Function Documentation

◆ command_help()

static void command_help ( const char *  cpnext)
static

Definition at line 95 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:

◆ config_check()

void config_check ( )

Check that want_config is valid, copy the new configuration to use_config, and apply the new configuration. Call this after changing want_config, either through config_load() or on_config_close().

Definition at line 331 of file config.c.

Referenced by do_set_mapscale(), main(), and on_auto_afk_response().

+ Here is the caller graph for this function:

◆ do_clienthelp_list()

static void do_clienthelp_list ( )
static

Definition at line 45 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 379 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 119 of file p_cmd.c.

◆ map_check_resize()

void map_check_resize ( )

Calculate and set desired map size based on map window size.

Definition at line 49 of file map.c.

Referenced by config_check().

+ Here is the caller graph for this function:

◆ show_help()

static void show_help ( const ConsoleCommand cc)
static

Definition at line 72 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:

Variable Documentation

◆ arm_mapedit

bool arm_mapedit = false

If true, the next drawextinfo is expected to contain a map path.

Definition at line 39 of file p_cmd.c.

Referenced by do_mapedit(), and message_callback().