Crossfire Client, Trunk
|
Go to the source code of this file.
Macros | |
#define | AF_LOCAL PF_LOCAL |
#define | PF_LOCAL PF_UNIX /* Old BSD name for PF_LOCAL. */ |
Enumerations | |
enum | CmdFormat { ASCII, SHORT_ARRAY, INT_ARRAY, SHORT_INT, MIXED, STATS, NODATA } |
Functions | |
void | script_fdset (int *maxfd, fd_set *set) |
void | script_init (const char *params) |
void | script_kill (const char *params) |
void | script_killall (void) |
void | script_killall_wrapper (const char *params) |
void | script_list (void) |
void | script_monitor (const char *command, int repeat, int must_send) |
void | script_monitor_str (const char *command) |
void | script_process (fd_set *set) |
void | script_sync (int cmddiff) |
void | script_tell (const char *params) |
void | script_watch (const char *cmd, const guint8 *data, const int len, const enum CmdFormat format) |
enum CmdFormat |
void script_fdset | ( | int * | maxfd, |
fd_set * | set | ||
) |
Definition at line 558 of file script.c.
References script::in_fd, maxfd, num_scripts, and scripts.
Referenced by do_network().
void script_init | ( | const char * | params | ) |
Definition at line 205 of file script.c.
References script::cmd_count, cpl, csocket, draw_ext_info(), script::in_fd, LOG(), LOG_ERROR, LOG_WARNING, MAX_BUF, script::monitor, MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_SCRIPT, script::name, Player_Struct::name, NDI_RED, num_scripts, script::num_watch, script::out_fd, script::params, script::pid, scripts, ClientSocket::servername, script::sync_watch, and script::watch.
Referenced by script_launch().
void script_kill | ( | const char * | params | ) |
Definition at line 515 of file script.c.
References draw_ext_info(), MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_SCRIPT, NDI_BLACK, NDI_RED, num_scripts, script::params, script::pid, script_by_name(), script_dead(), and scripts.
void script_killall | ( | void | ) |
Definition at line 541 of file script.c.
References draw_ext_info(), MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_SCRIPT, NDI_RED, num_scripts, script::pid, script_dead(), and scripts.
Referenced by menu_quit_character(), menu_quit_program(), on_button_exit_client_clicked(), on_window_destroy_event(), and script_killall_wrapper().
void script_killall_wrapper | ( | const char * | params | ) |
Definition at line 536 of file script.c.
References script_killall().
void script_list | ( | void | ) |
Definition at line 493 of file script.c.
References draw_ext_info(), MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_SCRIPT, script::name, NDI_BLACK, num_scripts, script::params, and scripts.
Referenced by do_script_list().
void script_monitor | ( | const char * | command, |
int | repeat, | ||
int | must_send | ||
) |
Definition at line 927 of file script.c.
References script::monitor, num_scripts, script::out_fd, and scripts.
Referenced by send_command().
void script_monitor_str | ( | const char * | command | ) |
Definition at line 943 of file script.c.
References script::monitor, num_scripts, script::out_fd, and scripts.
Referenced by cs_print_string(), inscribe_magical_scroll(), send_mark_obj(), and toggle_locked().
void script_process | ( | fd_set * | set | ) |
Definition at line 573 of file script.c.
References script::cmd, script::cmd_count, script::in_fd, num_scripts, script_dead(), script_process_cmd(), and scripts.
Referenced by do_network().
void script_sync | ( | int | cmddiff | ) |
Definition at line 475 of file script.c.
References num_scripts, script::out_fd, scripts, and script::sync_watch.
Referenced by CompleteCmd(), and script_process_cmd().
void script_tell | ( | const char * | params | ) |
Definition at line 959 of file script.c.
References draw_ext_info(), MAX_BUF, MSG_TYPE_CLIENT, MSG_TYPE_CLIENT_SCRIPT, NDI_BLACK, NDI_RED, script::out_fd, script::params, script_by_name(), and scripts.
void script_watch | ( | const char * | cmd, |
const guint8 * | data, | ||
const int | len, | ||
const enum CmdFormat | format | ||
) |
Definition at line 632 of file script.c.
References ASCII, script::cmd, CS_NUM_SKILLS, CS_STAT_AC, CS_STAT_ARMOUR, CS_STAT_CHA, CS_STAT_CON, CS_STAT_DAM, CS_STAT_DEX, CS_STAT_EXP, CS_STAT_EXP64, CS_STAT_FLAGS, CS_STAT_FOOD, CS_STAT_GRACE, CS_STAT_HP, CS_STAT_INT, CS_STAT_LEVEL, CS_STAT_MAXGRACE, CS_STAT_MAXHP, CS_STAT_MAXSP, CS_STAT_POW, CS_STAT_RANGE, CS_STAT_RESIST_END, CS_STAT_RESIST_START, CS_STAT_SKILLINFO, CS_STAT_SP, CS_STAT_SPEED, CS_STAT_STR, CS_STAT_TITLE, CS_STAT_WC, CS_STAT_WEAP_SP, CS_STAT_WEIGHT_LIM, CS_STAT_WIS, data_len, GetInt64_String(), GetInt_String(), GetShort_String(), INT_ARRAY, MAXSOCKBUF, MIXED, NODATA, num_scripts, script::num_watch, script::out_fd, scripts, SHORT_ARRAY, SHORT_INT, STATS, and script::watch.
Referenced by client_run().