File comm.c
* main game loop and related stuff *
Included Files
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/fcntl.h>
#include <sys/socket.h>
#include <sys/resource.h>
#include <netinet/in.h>
#include <netdb.h>
#include <signal.h>
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "house.h"
#include <arpa/telnet.h>
Preprocessor definitions
#define __COMM_C__
#define INVALID_SOCKET 1
#define FD_ZERO( x )
#define FD_SET( x, y )
#define FD_ISSET( x, y )
#define FD_CLR( x, y )
#define CHECK_NULL( pointer, expression )
#define SENDOK( ch )
Global Variable descriptor_list
void* descriptor_list
- Visible in:
-
- act.comm.c
- act.informative.c
- act.movement.c
- act.offensive.c
- act.other.c
- act.social.c
- act.wizard.c
- boards.c
- castle.c
- comm.c
- db.c
- handler.c
- interpreter.c
- magic.c
- objsave.c
- spec_procs.c
- spells.c
- utils.c
- Used in:
-
- Board_remove_msg() : boards.c
- Crash_save_all() : objsave.c
- check_idle_passwords() : comm.c
- close_socket() : comm.c
- do_dc() : act.wizard.c
- do_force() : act.wizard.c
- do_gecho() : act.wizard.c
- do_gen_comm() : act.comm.c
- do_page() : act.comm.c
- do_qcomm() : act.comm.c
- do_quit() : act.other.c
- do_trans() : act.wizard.c
- do_users() : act.informative.c
- do_who() : act.informative.c
- do_wiznet() : act.wizard.c
- extract_char() : handler.c
- game_loop() : comm.c
- init_game() : comm.c
- is_empty() : db.c
- mudlog() : utils.c
- new_descriptor() : comm.c
- perform_dupe_check() : interpreter.c
- perform_immort_where() : act.informative.c
- perform_mortal_where() : act.informative.c
- record_usage() : comm.c
- send_to_all() : comm.c
- send_to_outdoor() : comm.c
Global Variable bufpool
struct txt_block* bufpool
- Visible in:
-
- comm.c
- Used in:
-
- flush_queues() : comm.c
- process_output() : comm.c
- write_to_output() : comm.c
Global Variable buf_largecount
int buf_largecount
- Visible in:
-
- act.wizard.c
- comm.c
- Used in:
-
- do_show() : act.wizard.c
- write_to_output() : comm.c
Global Variable buf_overflows
int buf_overflows
- Visible in:
-
- act.wizard.c
- comm.c
- Used in:
-
- do_show() : act.wizard.c
- write_to_output() : comm.c
Global Variable buf_switches
int buf_switches
- Visible in:
-
- act.wizard.c
- comm.c
- Used in:
-
- do_show() : act.wizard.c
- write_to_output() : comm.c
Global Variable circle_shutdown
int circle_shutdown
- Visible in:
-
- act.wizard.c
- comm.c
- Used in:
-
- do_shutdown() : act.wizard.c
- game_loop() : comm.c
Global Variable circle_reboot
int circle_reboot
- Visible in:
-
- act.wizard.c
- comm.c
- Used in:
-
- do_shutdown() : act.wizard.c
- init_game() : comm.c
Global Variable no_specials
int no_specials
- Visible in:
-
- comm.c
- db.c
- interpreter.c
- mobact.c
- Used in:
-
- boot_db() : db.c
- boot_world() : db.c
- command_interpreter() : interpreter.c
- main() : comm.c
- mobile_activity() : mobact.c
Global Variable max_players
int max_players
- Visible in:
-
- comm.c
- Used in:
-
- init_game() : comm.c
- new_descriptor() : comm.c
Global Variable tics
int tics
- Visible in:
-
- comm.c
- Used in:
-
- checkpointing() : comm.c
- game_loop() : comm.c
Global Variable scheck
int scheck
- Visible in:
-
- comm.c
- Used in:
-
- main() : comm.c
Global Variable null_time
struct timeval null_time
- Visible in:
-
- comm.c
- Used in:
-
- game_loop() : comm.c
- timediff() : comm.c
Global Variable ACTNULL
char* ACTNULL
- Visible in:
-
- comm.c
- Used in:
-
- perform_act() : comm.c
External Variables
restrict
extern int restrict
- Defined in:
-
- db.c
mini_mud
extern int mini_mud
- Defined in:
-
- db.c
no_rent_check
extern int no_rent_check
- Defined in:
-
- db.c
player_fl
extern FILE* player_fl
- Defined in:
-
- db.c
DFLT_PORT
extern int DFLT_PORT
- Defined in:
-
- config.c
DFLT_DIR
extern char* DFLT_DIR
- Defined in:
-
- config.c
MAX_PLAYERS
extern int MAX_PLAYERS
- Defined in:
-
- config.c
MAX_DESCRIPTORS_AVAILABLE
extern int MAX_DESCRIPTORS_AVAILABLE
world
extern struct room_data* world
- Defined in:
-
- db.c
top_of_world
extern int top_of_world
- Defined in:
-
- db.c
time_info
extern struct time_info_data time_info
- Defined in:
-
- db.c
help
extern char help[]
- Defined in:
-
- db.c
nameserver_is_slow
extern int nameserver_is_slow
- Defined in:
-
- config.c
auto_save
extern int auto_save
- Defined in:
-
- config.c
autosave_time
extern int autosave_time
- Defined in:
-
- config.c
GREETINGS
extern char* GREETINGS
- Defined in:
-
- config.c
ban_list
extern struct ban_list_element* ban_list
- Defined in:
-
- ban.c
num_invalid
extern int num_invalid
- Defined in:
-
- ban.c
Global Function act()
void act ( char* str, int hide_invisible, struct char_data* ch, struct obj_data* obj, void* vict_obj, int type )
- Prototyped in:
-
- comm.h
- Calls:
-
- basic_mud_log() : utils.c
- perform_act() : comm.c
- Called by:
-
- Board_remove_msg() : boards.c
- Board_show_board() : boards.c
- Board_write_message() : boards.c
- Crash_offer_rent() : objsave.c
- Crash_rent_deadline() : objsave.c
- Crash_report_rent() : objsave.c
- Crash_report_unrentables() : objsave.c
- James() : castle.c
- add_follower() : utils.c
- appear() : fight.c
- bank() : spec_procs.c
- banzaii() : castle.c
- block_way() : castle.c
- call_magic() : spell_parser.c
- can_take_obj() : act.item.c
- check_idling() : limits.c
- cityguard() : spec_procs.c
- cleaning() : castle.c
- close_socket() : comm.c
- dam_message() : fight.c
- damage() : fight.c
- death_cry() : fight.c
- do_action() : act.social.c
- do_advance() : act.wizard.c
- do_assist() : act.offensive.c
- do_backstab() : act.offensive.c
- do_doorcmd() : act.movement.c
- do_drink() : act.item.c
- do_drop() : act.item.c
- do_eat() : act.item.c
- do_echo() : act.wizard.c
- do_flee() : act.offensive.c
- do_follow() : act.movement.c
- do_force() : act.wizard.c
- do_gen_comm() : act.comm.c
- do_gen_door() : act.movement.c
- do_get() : act.item.c
- do_goto() : act.wizard.c
- do_group() : act.other.c
- do_gsay() : act.comm.c
- do_hit() : act.offensive.c
- do_insult() : act.social.c
- do_kill() : act.offensive.c
- do_load() : act.wizard.c
- do_npc_rescue() : castle.c
- do_order() : act.offensive.c
- do_page() : act.comm.c
- do_pour() : act.item.c
- do_purge() : act.wizard.c
- do_put() : act.item.c
- do_qcomm() : act.comm.c
- do_quit() : act.other.c
- do_rescue() : act.offensive.c
- do_rest() : act.movement.c
- do_restore() : act.wizard.c
- do_say() : act.comm.c
- do_simple_move() : act.movement.c
- do_sit() : act.movement.c
- do_sleep() : act.movement.c
- do_spec_comm() : act.comm.c
- do_stand() : act.movement.c
- do_steal() : act.other.c
- do_teleport() : act.wizard.c
- do_tell() : act.comm.c
- do_trans() : act.wizard.c
- do_ungroup() : act.other.c
- do_wake() : act.movement.c
- do_wear() : act.item.c
- do_wizutil() : act.wizard.c
- do_write() : act.comm.c
- dump() : spec_procs.c
- equip_char() : handler.c
- fido() : spec_procs.c
- fry_victim() : castle.c
- game_loop() : comm.c
- gen_receptionist() : objsave.c
- get_from_container() : act.item.c
- guild_guard() : spec_procs.c
- janitor() : spec_procs.c
- jerry() : castle.c
- king_welmar() : castle.c
- list_one_char() : act.informative.c
- look_at_char() : act.informative.c
- look_at_target() : act.informative.c
- mag_affects() : magic.c
- mag_alter_objs() : magic.c
- mag_areas() : magic.c
- mag_creations() : magic.c
- mag_damage() : magic.c
- mag_materials() : magic.c
- mag_objectmagic() : spell_parser.c
- mag_summons() : magic.c
- mag_unaffects() : magic.c
- mayor() : spec_procs.c
- mobile_activity() : mobact.c
- nanny() : interpreter.c
- npc_steal() : spec_procs.c
- perform_drop() : act.item.c
- perform_drop_gold() : act.item.c
- perform_dupe_check() : interpreter.c
- perform_get_from_container() : act.item.c
- perform_get_from_room() : act.item.c
- perform_give() : act.item.c
- perform_give_gold() : act.item.c
- perform_group() : act.other.c
- perform_immort_invis() : act.wizard.c
- perform_move() : act.movement.c
- perform_put() : act.item.c
- perform_remove() : act.item.c
- perform_tell() : act.comm.c
- perform_violence() : fight.c
- perform_wear() : act.item.c
- pet_shops() : spec_procs.c
- peter() : castle.c
- point_update() : limits.c
- postmaster_check_mail() : mail.c
- postmaster_receive_mail() : mail.c
- postmaster_send_mail() : mail.c
- print_group() : act.other.c
- say_spell() : spell_parser.c
- shop_keeper() : shop.c
- shopping_buy() : shop.c
- shopping_sell() : shop.c
- show_obj_to_char() : act.informative.c
- skill_message() : fight.c
- snake() : spec_procs.c
- spell_charm() : spells.c
- spell_create_water() : spells.c
- spell_detect_poison() : spells.c
- spell_enchant_weapon() : spells.c
- spell_recall() : spells.c
- spell_summon() : spells.c
- spell_teleport() : spells.c
- stop_follower() : utils.c
- training_master() : castle.c
- update_char_objects() : handler.c
- wear_message() : act.item.c
- References Variables:
-
- weather_info : db.c
- world : db.c
Global Function check_idle_passwords()
void check_idle_passwords ( void )
- Prototyped in:
-
- comm.c
- Calls:
-
- echo_on() : comm.c
- write_to_output() : comm.c
- Called by:
-
- heartbeat() : comm.c
- References Variables:
-
- descriptor_list : comm.c
Global Function checkpointing()
void checkpointing ( void )
- Calls:
-
- basic_mud_log() : utils.c
- abort()
- Used in:
-
- signal_setup() : comm.c
- References Variables:
-
- tics : comm.c
Global Function close_socket()
void close_socket ( struct descriptor_data* d )
- Prototyped in:
-
- comm.h
- Calls:
-
- MAX() : utils.c
- act() : comm.c
- flush_queues() : comm.c
- free_char() : db.c
- mudlog() : utils.c
- save_char() : db.c
- write_to_output() : comm.c
- close(), free(), sprintf()
- Called by:
-
- check_idling() : limits.c
- do_dc() : act.wizard.c
- do_purge() : act.wizard.c
- do_quit() : act.other.c
- do_return() : act.wizard.c
- game_loop() : comm.c
- init_game() : comm.c
- nanny() : interpreter.c
- References Variables:
-
- descriptor_list : comm.c
Global Function echo_off()
void echo_off ( struct descriptor_data* d )
- Calls:
-
- write_to_output() : comm.c
- Called by:
-
- nanny() : interpreter.c
Global Function echo_on()
void echo_on ( struct descriptor_data* d )
- Calls:
-
- write_to_output() : comm.c
- Called by:
-
- check_idle_passwords() : comm.c
- nanny() : interpreter.c
Global Function flush_queues()
void flush_queues ( struct descriptor_data* d )
- Prototyped in:
-
- comm.c
- Calls:
-
- get_from_q() : comm.c
- Called by:
-
- close_socket() : comm.c
- References Variables:
-
- bufpool : comm.c
- buf
Global Function game_loop()
void game_loop ( int mother_desc )
- Prototyped in:
-
- comm.c
- Calls:
-
- act() : comm.c
- basic_mud_log() : utils.c
- char_from_room() : handler.c
- char_to_room() : handler.c
- close_socket() : comm.c
- command_interpreter() : interpreter.c
- get_from_q() : comm.c
- heartbeat() : comm.c
- make_prompt() : comm.c
- nanny() : interpreter.c
- new_descriptor() : comm.c
- perform_alias() : interpreter.c
- process_input() : comm.c
- process_output() : comm.c
- show_string() : modify.c
- string_add() : modify.c
- timeadd() : comm.c
- timediff() : comm.c
- exit(), gettimeofday(), perror(), select()
- Called by:
-
- init_game() : comm.c
- References Variables:
-
- circle_shutdown : comm.c
- descriptor_list : comm.c
- null_time : comm.c
- tics : comm.c
Global Function get_from_q()
int get_from_q ( struct txt_q* queue, char* dest, int* aliased )
- Prototyped in:
-
- comm.c
- Calls:
-
- free(), strcpy()
- Called by:
-
- flush_queues() : comm.c
- game_loop() : comm.c
Global Function get_max_players()
int get_max_players ( void )
- Prototyped in:
-
- comm.c
- Calls:
-
- MIN() : utils.c
- basic_mud_log() : utils.c
- exit(), getrlimit(), perror(), setrlimit(), sprintf()
- Called by:
-
- init_game() : comm.c
- References Variables:
-
- MAX_PLAYERS : config.c
- buf
Global Function heartbeat()
void heartbeat ( int pulse )
- Prototyped in:
-
- comm.c
- Calls:
-
- Crash_save_all() : objsave.c
- House_save_all() : house.c
- affect_update() : magic.c
- check_idle_passwords() : comm.c
- mobile_activity() : mobact.c
- perform_violence() : fight.c
- point_update() : limits.c
- record_usage() : comm.c
- weather_and_time() : weather.c
- zone_update() : db.c
- fflush()
- Called by:
-
- game_loop() : comm.c
- References Variables:
-
- auto_save : config.c
- autosave_time : config.c
- player_fl : db.c
Global Function hupsig()
void hupsig ( void )
- Calls:
-
- basic_mud_log() : utils.c
- exit()
- Used in:
-
- signal_setup() : comm.c
Global Function init_game()
void init_game ( int port )
- Prototyped in:
-
- comm.c
- Calls:
-
- basic_mud_log() : utils.c
- boot_db() : db.c
- close_socket() : comm.c
- game_loop() : comm.c
- get_max_players() : comm.c
- init_socket() : comm.c
- signal_setup() : comm.c
- srandom() : random.c
- close(), exit(), fclose(), time()
- Called by:
-
- main() : comm.c
- References Variables:
-
- circle_reboot : comm.c
- descriptor_list : comm.c
- max_players : comm.c
- player_fl : db.c
Global Function init_socket()
int init_socket ( int port )
- Prototyped in:
-
- comm.c
- Calls:
-
- nonblock() : comm.c
- bind(), close(), exit(), htonl(), htons(), listen(), perror(), setsockopt(), socket()
- Called by:
-
- init_game() : comm.c
Global Function main()
int main ( int argc, char** argv )
- Calls:
-
- basic_mud_log() : utils.c
- boot_world() : db.c
- init_game() : comm.c
- atoi(), chdir(), exit(), fprintf(), perror(), sprintf()
- References Variables:
-
- DFLT_DIR : config.c
- DFLT_PORT : config.c
- mini_mud : db.c
- no_rent_check : db.c
- no_specials : comm.c
- restrict : db.c
- scheck : comm.c
Global Function make_prompt()
void make_prompt ( struct descriptor_data* d )
- Prototyped in:
-
- comm.c
- Calls:
-
- write_to_descriptor() : comm.c
- sprintf(), strcat()
- Called by:
-
- game_loop() : comm.c
Global Function my_signal()
sigfunc* my_signal ( int signo, sigfunc* func )
- Calls:
-
- sigaction(), sigemptyset()
- Called by:
-
- signal_setup() : comm.c
Global Function new_descriptor()
int new_descriptor ( int s )
- Prototyped in:
-
- comm.c
- Calls:
-
- isbanned() : ban.c
- mudlog() : utils.c
- nonblock() : comm.c
- write_to_descriptor() : comm.c
- write_to_output() : comm.c
- __gnu_calloc(), abort(), accept(), close(), free(), gethostbyaddr(), memset(), ntohl(), perror(), sprintf(), strncpy(), time()
- Called by:
-
- game_loop() : comm.c
- References Variables:
-
- GREETINGS : config.c
- descriptor_list : comm.c
- max_players : comm.c
- nameserver_is_slow : config.c
- buf
Global Function nonblock()
void nonblock ( socket_t s )
- Prototyped in:
-
- comm.c
- Calls:
-
- exit(), fcntl(), perror()
- Called by:
-
- init_socket() : comm.c
- new_descriptor() : comm.c
Global Function perform_act()
void perform_act ( char* orig, struct char_data* ch, struct obj_data* obj, void* vict_obj, struct char_data* to )
- Prototyped in:
-
- comm.h
- Calls:
-
- basic_mud_log() : utils.c
- fname() : handler.c
- write_to_output() : comm.c
- strcat(), strchr(), strcpy()
- Called by:
-
- act() : comm.c
- say_spell() : spell_parser.c
- References Variables:
-
- ACTNULL : comm.c
- weather_info : db.c
- world : db.c
- buf
Global Function perform_subst()
int perform_subst ( struct descriptor_data* t, char* orig, char* subst )
- Prototyped in:
-
- comm.c
- Calls:
-
- write_to_output() : comm.c
- strchr(), strcpy(), strlen(), strncat(), strncpy(), strstr()
- Called by:
-
- process_input() : comm.c
Global Function process_input()
int process_input ( struct descriptor_data* t )
- Prototyped in:
-
- comm.c
- Calls:
-
- basic_mud_log() : utils.c
- perform_subst() : comm.c
- write_to_descriptor() : comm.c
- write_to_output() : comm.c
- write_to_q() : comm.c
- perror(), read(), sprintf(), strcpy(), strlen()
- Called by:
-
- game_loop() : comm.c
Global Function process_output()
int process_output ( struct descriptor_data* t )
- Prototyped in:
-
- comm.c
- Calls:
-
- write_to_descriptor() : comm.c
- write_to_output() : comm.c
- strcat(), strcpy()
- Called by:
-
- game_loop() : comm.c
- References Variables:
-
- bufpool : comm.c
Global Function record_usage()
void record_usage ( void )
- Prototyped in:
-
- comm.c
- Calls:
-
- basic_mud_log() : utils.c
- sprintf()
- Called by:
-
- heartbeat() : comm.c
- References Variables:
-
- descriptor_list : comm.c
Global Function reread_wizlists()
void reread_wizlists ( void )
- Calls:
-
- mudlog() : utils.c
- Used in:
-
- signal_setup() : comm.c
Global Function send_to_all()
void send_to_all ( char* messg )
- Prototyped in:
-
- comm.h
- Calls:
-
- write_to_output() : comm.c
- Called by:
-
- do_shutdown() : act.wizard.c
- References Variables:
-
- descriptor_list : comm.c
Global Function send_to_char()
void send_to_char ( char* messg, struct char_data* ch )
- Prototyped in:
-
- comm.h
- Calls:
-
- write_to_output() : comm.c
- Called by:
-
- Board_display_msg() : boards.c
- Board_remove_msg() : boards.c
- Board_show_board() : boards.c
- Board_write_message() : boards.c
- Crash_listrent() : objsave.c
- Crash_load() : objsave.c
- House_listrent() : house.c
- affect_update() : magic.c
- bank() : spec_procs.c
- block_way() : castle.c
- call_magic() : spell_parser.c
- cast_spell() : spell_parser.c
- check_idling() : limits.c
- check_killer() : fight.c
- command_interpreter() : interpreter.c
- dam_message() : fight.c
- damage() : fight.c
- diag_char_to_char() : act.informative.c
- do_action() : act.social.c
- do_advance() : act.wizard.c
- do_alias() : interpreter.c
- do_assist() : act.offensive.c
- do_at() : act.wizard.c
- do_auto_exits() : act.informative.c
- do_backstab() : act.offensive.c
- do_ban() : ban.c
- do_bash() : act.offensive.c
- do_cast() : spell_parser.c
- do_color() : act.informative.c
- do_commands() : act.informative.c
- do_consider() : act.informative.c
- do_date() : act.wizard.c
- do_dc() : act.wizard.c
- do_diagnose() : act.informative.c
- do_display() : act.other.c
- do_doorcmd() : act.movement.c
- do_drink() : act.item.c
- do_drop() : act.item.c
- do_eat() : act.item.c
- do_echo() : act.wizard.c
- do_enter() : act.movement.c
- do_equipment() : act.informative.c
- do_examine() : act.informative.c
- do_exits() : act.informative.c
- do_flee() : act.offensive.c
- do_follow() : act.movement.c
- do_force() : act.wizard.c
- do_gecho() : act.wizard.c
- do_gen_comm() : act.comm.c
- do_gen_door() : act.movement.c
- do_gen_ps() : act.informative.c
- do_gen_tog() : act.other.c
- do_gen_write() : act.other.c
- do_get() : act.item.c
- do_give() : act.item.c
- do_gold() : act.informative.c
- do_grab() : act.item.c
- do_group() : act.other.c
- do_gsay() : act.comm.c
- do_hcontrol() : house.c
- do_help() : act.informative.c
- do_hide() : act.other.c
- do_hit() : act.offensive.c
- do_house() : house.c
- do_insult() : act.social.c
- do_inventory() : act.informative.c
- do_invis() : act.wizard.c
- do_kick() : act.offensive.c
- do_kill() : act.offensive.c
- do_last() : act.wizard.c
- do_leave() : act.movement.c
- do_levels() : act.informative.c
- do_load() : act.wizard.c
- do_look() : act.informative.c
- do_not_here() : act.other.c
- do_olc() : olc.c
- do_order() : act.offensive.c
- do_page() : act.comm.c
- do_poofset() : act.wizard.c
- do_pour() : act.item.c
- do_practice() : act.other.c
- do_purge() : act.wizard.c
- do_put() : act.item.c
- do_qcomm() : act.comm.c
- do_quit() : act.other.c
- do_reboot() : db.c
- do_remove() : act.item.c
- do_reply() : act.comm.c
- do_report() : act.other.c
- do_rescue() : act.offensive.c
- do_restore() : act.wizard.c
- do_return() : act.wizard.c
- do_save() : act.other.c
- do_say() : act.comm.c
- do_score() : act.informative.c
- do_send() : act.wizard.c
- do_set() : act.wizard.c
- do_show() : act.wizard.c
- do_shutdown() : act.wizard.c
- do_simple_move() : act.movement.c
- do_sit() : act.movement.c
- do_skillset() : modify.c
- do_sleep() : act.movement.c
- do_sneak() : act.other.c
- do_snoop() : act.wizard.c
- do_spec_comm() : act.comm.c
- do_split() : act.other.c
- do_stat() : act.wizard.c
- do_stat_character() : act.wizard.c
- do_stat_object() : act.wizard.c
- do_stat_room() : act.wizard.c
- do_steal() : act.other.c
- do_switch() : act.wizard.c
- do_syslog() : act.wizard.c
- do_teleport() : act.wizard.c
- do_tell() : act.comm.c
- do_time() : act.informative.c
- do_title() : act.other.c
- do_toggle() : act.informative.c
- do_track() : graph.c
- do_trans() : act.wizard.c
- do_unban() : ban.c
- do_ungroup() : act.other.c
- do_use() : act.other.c
- do_users() : act.informative.c
- do_visible() : act.other.c
- do_vnum() : act.wizard.c
- do_vstat() : act.wizard.c
- do_wake() : act.movement.c
- do_wear() : act.item.c
- do_weather() : act.informative.c
- do_who() : act.informative.c
- do_wield() : act.item.c
- do_wimpy() : act.other.c
- do_wizlock() : act.wizard.c
- do_wiznet() : act.wizard.c
- do_wizutil() : act.wizard.c
- do_write() : act.comm.c
- do_zreset() : act.wizard.c
- find_door() : act.movement.c
- find_eq_pos() : act.item.c
- find_target_room() : act.wizard.c
- gain_condition() : limits.c
- gain_exp() : limits.c
- gain_exp_regardless() : limits.c
- gen_receptionist() : objsave.c
- get_check_money() : act.item.c
- get_from_container() : act.item.c
- get_from_room() : act.item.c
- give_find_vict() : act.item.c
- guild() : spec_procs.c
- guild_guard() : spec_procs.c
- handle_detailed_list() : shop.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_list_houses() : house.c
- hcontrol_pay_house() : house.c
- list_char_to_char() : act.informative.c
- list_detailed_shop() : shop.c
- list_obj_to_char() : act.informative.c
- list_one_char() : act.informative.c
- look_at_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
- mag_affects() : magic.c
- mag_alter_objs() : magic.c
- mag_creations() : magic.c
- mag_materials() : magic.c
- mag_points() : magic.c
- mag_summons() : magic.c
- mag_unaffects() : magic.c
- mudlog() : utils.c
- nanny() : interpreter.c
- ok_pick() : act.movement.c
- olc_bitvector() : olc.c
- olc_interpreter() : olc.c
- olc_string() : olc.c
- page_string() : modify.c
- perform_drop_gold() : act.item.c
- perform_give_gold() : act.item.c
- perform_group_gain() : fight.c
- perform_immort_invis() : act.wizard.c
- perform_immort_vis() : act.wizard.c
- perform_immort_where() : act.informative.c
- perform_mortal_where() : act.informative.c
- perform_move() : act.movement.c
- perform_set() : act.wizard.c
- perform_tell() : act.comm.c
- perform_violence() : fight.c
- perform_wear() : act.item.c
- pet_shops() : spec_procs.c
- postmaster() : mail.c
- print_group() : act.other.c
- print_object_location() : act.informative.c
- shopping_buy() : shop.c
- shopping_sell() : shop.c
- show_shops() : shop.c
- show_string() : modify.c
- skill_message() : fight.c
- spell_charm() : spells.c
- spell_detect_poison() : spells.c
- spell_identify() : spells.c
- spell_locate_object() : spells.c
- spell_summon() : spells.c
- stop_snooping() : act.wizard.c
- string_add() : modify.c
- training_master() : castle.c
- vnum_mobile() : db.c
- vnum_object() : db.c
Global Function send_to_outdoor()
void send_to_outdoor ( char* messg )
- Prototyped in:
-
- comm.h
- Calls:
-
- write_to_output() : comm.c
- Called by:
-
- another_hour() : weather.c
- weather_change() : weather.c
- References Variables:
-
- descriptor_list : comm.c
- world : db.c
Global Function send_to_room()
void send_to_room ( char* messg, int room )
- Prototyped in:
-
- comm.h
- Calls:
-
- write_to_output() : comm.c
- Called by:
-
- do_purge() : act.wizard.c
- References Variables:
-
- world : db.c
Global Function signal_setup()
void signal_setup ( void )
- Prototyped in:
-
- comm.c
- Calls:
-
- my_signal() : comm.c
- setitimer()
- Called by:
-
- init_game() : comm.c
- References Functions:
-
- checkpointing() : comm.c
- hupsig() : comm.c
- reread_wizlists() : comm.c
- unrestrict_game() : comm.c
Global Function timeadd()
struct timeval timeadd ( struct timeval a, struct timeval b )
- Prototyped in:
-
- comm.c
- Called by:
-
- game_loop() : comm.c
Global Function timediff()
struct timeval timediff ( struct timeval a, struct timeval b )
- Prototyped in:
-
- comm.c
- Called by:
-
- game_loop() : comm.c
- References Variables:
-
- null_time : comm.c
Global Function unrestrict_game()
void unrestrict_game ( void )
- Calls:
-
- mudlog() : utils.c
- Used in:
-
- signal_setup() : comm.c
- References Variables:
-
- ban_list : ban.c
- num_invalid : ban.c
- restrict : db.c
Global Function write_to_descriptor()
int write_to_descriptor ( socket_t desc, char* txt )
- Prototyped in:
-
- comm.h
- Calls:
-
- basic_mud_log() : utils.c
- perror(), strlen(), write()
- Called by:
-
- make_prompt() : comm.c
- new_descriptor() : comm.c
- process_input() : comm.c
- process_output() : comm.c
Global Function write_to_output()
void write_to_output ( const char* txt, struct descriptor_data* t )
- Prototyped in:
-
- comm.h
- Calls:
-
- __gnu_calloc(), abort(), perror(), strcat(), strcpy(), strlen()
- Called by:
-
- check_idle_passwords() : comm.c
- close_socket() : comm.c
- echo_off() : comm.c
- echo_on() : comm.c
- extract_char() : handler.c
- nanny() : interpreter.c
- new_descriptor() : comm.c
- perform_act() : comm.c
- perform_dupe_check() : interpreter.c
- perform_subst() : comm.c
- process_input() : comm.c
- process_output() : comm.c
- send_to_all() : comm.c
- send_to_char() : comm.c
- send_to_outdoor() : comm.c
- send_to_room() : comm.c
- string_add() : modify.c
- References Variables:
-
- buf_largecount : comm.c
- buf_overflows : comm.c
- buf_switches : comm.c
- bufpool : comm.c
Global Function write_to_q()
void write_to_q ( char* txt, struct txt_q* queue, int aliased )
- Prototyped in:
-
- comm.h
- Calls:
-
- __gnu_calloc(), abort(), perror(), strcpy(), strlen()
- Called by:
-
- perform_complex_alias() : interpreter.c
- process_input() : comm.c