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)
 Check that want_config is valid, copy the new configuration to use_config, and apply the new configuration. More...
 
static void do_clienthelp_list ()
 
static int get_num_commands (void)
 
static const char * help_help (void)
 
void map_check_resize (void)
 Calculate and set desired map size based on map window size. More...
 
static void show_help (const ConsoleCommand *cc)
 

Variables

bool arm_mapedit = false
 If true, the next drawextinfo is expected to contain a map path. More...
 
int render_debug_layers = MAXLAYERS
 Current number of layers to render for renderer debugging purposes. More...
 

Detailed Description

Macro Definition Documentation

◆ H1

Definition at line 32 of file p_cmd.c.

◆ H2

Definition at line 33 of file p_cmd.c.

◆ LINE

Definition at line 34 of file p_cmd.c.

Function Documentation

◆ command_help()

static void command_help ( const char *  cpnext)
static

Definition at line 98 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 334 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 48 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 395 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 122 of file p_cmd.c.

◆ map_check_resize()

void map_check_resize ( void  )

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 75 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.

EndOf GTK V2 Message Control System.

Definition at line 40 of file p_cmd.c.

Referenced by do_mapedit(), and message_callback().

◆ render_debug_layers

int render_debug_layers = MAXLAYERS

Current number of layers to render for renderer debugging purposes.

Normally set to MAXLAYERS when not debugging.

Definition at line 46 of file p_cmd.c.

Referenced by cmd_debugrender(), and gtk_map_redraw().