File act.informative.c
Included Files
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "spells.h"
#include "screen.h"
Preprocessor definitions
#define WHO_FORMAT "format: who [minlev[-maxlev]] [-n name] [-c classlist] [-s] [-o] [-q] [-r] [-z]\r\n"
#define USERS_FORMAT "format: users [-l minlevel[-maxlevel]] [-n name] [-h host] [-c classlist] [-o] [-p]\r\n"
Type struct sort_struct
struct sort_struct
{
int sort_pos
byte is_social
}
Global Variable cmd_sort_info
void* cmd_sort_info
- Visible in:
-
- act.informative.c
- Used in:
-
- do_commands() : act.informative.c
- sort_commands() : act.informative.c
Global Variable num_of_cmds
int num_of_cmds
- Visible in:
-
- act.informative.c
- Used in:
-
- do_commands() : act.informative.c
- sort_commands() : act.informative.c
External Variables
cmd_info
struct command_info cmd_info[]
- Defined in:
-
- interpreter.c
world
extern struct room_data* world
- Defined in:
-
- db.c
descriptor_list
extern struct descriptor_data* descriptor_list
- Defined in:
-
- comm.c
character_list
extern struct char_data* character_list
- Defined in:
-
- db.c
object_list
extern struct obj_data* object_list
- Defined in:
-
- db.c
credits
extern char* credits
- Defined in:
-
- db.c
news
extern char* news
- Defined in:
-
- db.c
info
extern char* info
- Defined in:
-
- db.c
motd
extern char* motd
- Defined in:
-
- db.c
imotd
extern char* imotd
- Defined in:
-
- db.c
wizlist
extern char* wizlist
- Defined in:
-
- db.c
immlist
extern char* immlist
- Defined in:
-
- db.c
policies
extern char* policies
- Defined in:
-
- db.c
handbook
extern char* handbook
- Defined in:
-
- db.c
dirs
extern char* dirs[]
- Defined in:
-
- constants.c
where
extern char* where[]
- Defined in:
-
- constants.c
color_liquid
extern char* color_liquid[]
- Defined in:
-
- constants.c
fullness
extern char* fullness[]
- Defined in:
-
- constants.c
connected_types
extern char* connected_types[]
- Defined in:
-
- constants.c
class_abbrevs
extern char* class_abbrevs[]
- Defined in:
-
- class.c
room_bits
extern char* room_bits[]
- Defined in:
-
- constants.c
spells
extern char* spells[]
- Defined in:
-
- spell_parser.c
time_info
extern struct time_info_data time_info
- Defined in:
-
- db.c
weekdays
extern char* weekdays[]
- Defined in:
-
- constants.c
month_name
extern char* month_name[]
- Defined in:
-
- constants.c
top_of_helpt
extern int top_of_helpt
- Defined in:
-
- db.c
help_table
extern struct help_index_element* help_table
- Defined in:
-
- db.c
help
extern char* help
- Defined in:
-
- db.c
circlemud_version
extern char circlemud_version[]
- Defined in:
-
- constants.c
Local Variables
ctypes
static char* ctypes[]
- Used in:
-
- do_color()
- do_toggle()
Global Function diag_char_to_char()
void diag_char_to_char ( struct char_data* i, struct char_data* ch )
- Calls:
-
- send_to_char() : comm.c
- strcat(), strcpy()
- Called by:
-
- do_diagnose() : act.informative.c
- look_at_char() : act.informative.c
- References Variables:
-
- weather_info : db.c
- world : db.c
- buf
Global Function do_auto_exits()
void do_auto_exits ( struct char_data* ch )
- Calls:
-
- send_to_char() : comm.c
- sprintf()
- Called by:
-
- look_at_room() : act.informative.c
- References Variables:
-
- dirs : constants.c
- world : db.c
- buf, buf
Global Function do_color()
void do_color ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- one_argument() : interpreter.c
- search_block() : interpreter.c
- send_to_char() : comm.c
- sprintf()
- Used in:
-
- : interpreter.c
- References Variables:
-
- ctypes : act.informative.c
- arg, buf
Global Function do_commands()
void do_commands ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- get_char_vis() : handler.c
- one_argument() : interpreter.c
- send_to_char() : comm.c
- sprintf(), strcat(), strlen()
- Used in:
-
- : interpreter.c
- References Variables:
-
- cmd_info : interpreter.c
- cmd_sort_info : act.informative.c
- num_of_cmds : act.informative.c
- arg, buf
Global Function do_consider()
void do_consider ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- get_char_room_vis() : handler.c
- one_argument() : interpreter.c
- send_to_char() : comm.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- buf
Global Function do_diagnose()
void do_diagnose ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- diag_char_to_char() : act.informative.c
- get_char_room_vis() : handler.c
- one_argument() : interpreter.c
- send_to_char() : comm.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- NOPERSON : config.c
- buf
Global Function do_equipment()
void do_equipment ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- send_to_char() : comm.c
- show_obj_to_char() : act.informative.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- weather_info : db.c
- where : constants.c
- world : db.c
Global Function do_examine()
void do_examine ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- generic_find() : handler.c
- look_at_target() : act.informative.c
- look_in_obj() : act.informative.c
- one_argument() : interpreter.c
- send_to_char() : comm.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- arg
Global Function do_exits()
void do_exits ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- send_to_char() : comm.c
- sprintf(), strcat()
- Used in:
-
- : interpreter.c
- References Variables:
-
- dirs : constants.c
- weather_info : db.c
- world : db.c
- buf, buf
Global Function do_gen_ps()
void do_gen_ps ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- page_string() : modify.c
- send_to_char() : comm.c
- strcat(), strcpy()
- Used in:
-
- : interpreter.c
- References Variables:
-
- circlemud_version : constants.c
- credits : db.c
- handbook : db.c
- immlist : db.c
- imotd : db.c
- info : db.c
- motd : db.c
- news : db.c
- policies : db.c
- wizlist : db.c
- buf
Global Function do_gold()
void do_gold ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- send_to_char() : comm.c
- sprintf()
- Used in:
-
- : interpreter.c
- References Variables:
-
- buf
Global Function do_help()
void do_help ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- page_string() : modify.c
- send_to_char() : comm.c
- skip_spaces() : interpreter.c
- strn_cmp() : utils.c
- strlen()
- Used in:
-
- : interpreter.c
- References Variables:
-
- help : db.c
- help_table : db.c
- top_of_helpt : db.c
Global Function do_inventory()
void do_inventory ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- list_obj_to_char() : act.informative.c
- send_to_char() : comm.c
- Used in:
-
- : interpreter.c
Global Function do_levels()
void do_levels ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- level_exp() : class.c
- page_string() : modify.c
- send_to_char() : comm.c
- title_female() : class.c
- title_male() : class.c
- sprintf(), strcat(), strlen()
- Used in:
-
- : interpreter.c
- References Variables:
-
- buf
Global Function do_look()
void do_look ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- half_chop() : interpreter.c
- is_abbrev() : interpreter.c
- list_char_to_char() : act.informative.c
- look_at_room() : act.informative.c
- look_at_target() : act.informative.c
- look_in_direction() : act.informative.c
- look_in_obj() : act.informative.c
- search_block() : interpreter.c
- send_to_char() : comm.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- dirs : constants.c
- weather_info : db.c
- world : db.c
- arg
Global Function do_score()
void do_score ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- affected_by_spell() : handler.c
- age() : utils.c
- level_exp() : class.c
- send_to_char() : comm.c
- sprintf(), strcat(), time()
- Used in:
-
- : interpreter.c
- References Variables:
-
- weather_info : db.c
- world : db.c
- buf
Global Function do_time()
void do_time ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- send_to_char() : comm.c
- sprintf(), strcat()
- Used in:
-
- : interpreter.c
- References Variables:
-
- month_name : constants.c
- time_info : db.c
- weekdays : constants.c
- buf
Global Function do_toggle()
void do_toggle ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- send_to_char() : comm.c
- sprintf(), strcpy()
- Used in:
-
- : interpreter.c
- References Variables:
-
- ctypes : act.informative.c
- buf, buf
Global Function do_users()
void do_users ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- find_class_bitvector() : class.c
- half_chop() : interpreter.c
- one_argument() : interpreter.c
- send_to_char() : comm.c
- str_cmp() : utils.c
- asctime(), localtime(), sprintf(), sscanf(), strcat(), strcpy(), strlen(), strstr()
- Used in:
-
- : interpreter.c
- References Variables:
-
- class_abbrevs : class.c
- connected_types : constants.c
- descriptor_list : comm.c
- weather_info : db.c
- world : db.c
- arg, buf, buf
Global Function do_weather()
void do_weather ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- send_to_char() : comm.c
- sprintf()
- Used in:
-
- : interpreter.c
- References Variables:
-
- weather_info : db.c
- world : db.c
- buf
Global Function do_where()
void do_where ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- one_argument() : interpreter.c
- perform_immort_where() : act.informative.c
- perform_mortal_where() : act.informative.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- arg
Global Function do_who()
void do_who ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- find_class_bitvector() : class.c
- half_chop() : interpreter.c
- send_to_char() : comm.c
- skip_spaces() : interpreter.c
- str_cmp() : utils.c
- sprintf(), sscanf(), strcat(), strcpy(), strlen(), strstr()
- Used in:
-
- : interpreter.c
- References Variables:
-
- class_abbrevs : class.c
- descriptor_list : comm.c
- weather_info : db.c
- world : db.c
- arg, buf, buf
Global Function find_exdesc()
char* find_exdesc ( char* word, struct extra_descr_data* list )
- Calls:
-
- isname() : handler.c
- Called by:
-
- look_at_target() : act.informative.c
Global Function list_char_to_char()
void list_char_to_char ( struct char_data* list, struct char_data* ch )
- Calls:
-
- list_one_char() : act.informative.c
- send_to_char() : comm.c
- Called by:
-
- do_look() : act.informative.c
- look_at_room() : act.informative.c
- References Variables:
-
- weather_info : db.c
- world : db.c
Global Function list_obj_to_char()
void list_obj_to_char ( struct obj_data* list, struct char_data* ch, int mode, bool show )
- Calls:
-
- send_to_char() : comm.c
- show_obj_to_char() : act.informative.c
- Called by:
-
- do_inventory() : act.informative.c
- look_at_room() : act.informative.c
- look_in_obj() : act.informative.c
- References Variables:
-
- weather_info : db.c
- world : db.c
Global Function list_one_char()
void list_one_char ( struct char_data* i, struct char_data* ch )
- Calls:
-
- act() : comm.c
- send_to_char() : comm.c
- sprintf(), strcat(), strcpy()
- Called by:
-
- list_char_to_char() : act.informative.c
- References Variables:
-
- weather_info : db.c
- world : db.c
- buf
Global Function look_at_char()
void look_at_char ( struct char_data* i, struct char_data* ch )
- Calls:
-
- act() : comm.c
- diag_char_to_char() : act.informative.c
- number() : utils.c
- send_to_char() : comm.c
- show_obj_to_char() : act.informative.c
- Called by:
-
- look_at_target() : act.informative.c
- References Variables:
-
- weather_info : db.c
- where : constants.c
- world : db.c
Global Function look_at_room()
void look_at_room ( struct char_data* ch, int ignore_brief )
- Prototyped in:
-
- utils.h
- Calls:
-
- do_auto_exits() : act.informative.c
- list_char_to_char() : act.informative.c
- list_obj_to_char() : act.informative.c
- send_to_char() : comm.c
- sprintbit() : utils.c
- sprintf()
- Called by:
-
- do_goto() : act.wizard.c
- do_look() : act.informative.c
- do_simple_move() : act.movement.c
- do_teleport() : act.wizard.c
- do_trans() : act.wizard.c
- nanny() : interpreter.c
- spell_recall() : spells.c
- spell_summon() : spells.c
- spell_teleport() : spells.c
- References Variables:
-
- room_bits : constants.c
- weather_info : db.c
- world : db.c
- buf, buf
Global Function look_at_target()
void look_at_target ( struct char_data* ch, char* arg )
- Calls:
-
- act() : comm.c
- find_exdesc() : act.informative.c
- generic_find() : handler.c
- look_at_char() : act.informative.c
- page_string() : modify.c
- send_to_char() : comm.c
- show_obj_to_char() : act.informative.c
- Called by:
-
- do_examine() : act.informative.c
- do_look() : act.informative.c
- References Variables:
-
- weather_info : db.c
- world : db.c
Global Function look_in_direction()
void look_in_direction ( struct char_data* ch, int dir )
- Calls:
-
- fname() : handler.c
- send_to_char() : comm.c
- sprintf()
- Called by:
-
- do_look() : act.informative.c
- References Variables:
-
- world : db.c
- buf
Global Function look_in_obj()
void look_in_obj ( struct char_data* ch, char* arg )
- Calls:
-
- fname() : handler.c
- generic_find() : handler.c
- list_obj_to_char() : act.informative.c
- send_to_char() : comm.c
- sprinttype() : utils.c
- sprintf(), strchr()
- Called by:
-
- do_examine() : act.informative.c
- do_look() : act.informative.c
- References Variables:
-
- color_liquid : constants.c
- fullness : constants.c
- buf, buf
Global Function perform_immort_where()
void perform_immort_where ( struct char_data* ch, char* arg )
- Calls:
-
- isname() : handler.c
- print_object_location() : act.informative.c
- send_to_char() : comm.c
- sprintf()
- Called by:
-
- do_where() : act.informative.c
- References Variables:
-
- character_list : db.c
- descriptor_list : comm.c
- object_list : db.c
- weather_info : db.c
- world : db.c
- buf
Global Function perform_mortal_where()
void perform_mortal_where ( struct char_data* ch, char* arg )
- Calls:
-
- isname() : handler.c
- send_to_char() : comm.c
- sprintf()
- Called by:
-
- do_where() : act.informative.c
- References Variables:
-
- character_list : db.c
- descriptor_list : comm.c
- weather_info : db.c
- world : db.c
- buf
Global Function print_object_location()
void print_object_location ( int num, struct obj_data* obj, struct char_data* ch, int recur )
- Calls:
-
- print_object_location() : act.informative.c
- send_to_char() : comm.c
- sprintf(), strlen()
- Called by:
-
- perform_immort_where() : act.informative.c
- print_object_location() : act.informative.c
- References Variables:
-
- weather_info : db.c
- world : db.c
- buf
Global Function show_obj_to_char()
void show_obj_to_char ( struct obj_data* object, struct char_data* ch, int mode )
- Calls:
-
- act() : comm.c
- page_string() : modify.c
- strcat(), strcpy()
- Called by:
-
- do_equipment() : act.informative.c
- list_obj_to_char() : act.informative.c
- look_at_char() : act.informative.c
- look_at_target() : act.informative.c
- References Variables:
-
- buf
Global Function sort_commands()
void sort_commands ( void )
- Calls:
-
- find_command() : interpreter.c
- __gnu_calloc(), abort(), perror(), strcmp()
- Called by:
-
- boot_db() : db.c
- References Variables:
-
- cmd_info : interpreter.c
- cmd_sort_info : act.informative.c
- num_of_cmds : act.informative.c