File house.c
* Functions for house administration (creation, deletion, etc. *
Included Files
#include "structs.h"
#include "comm.h"
#include "handler.h"
#include "db.h"
#include "interpreter.h"
#include "utils.h"
#include "house.h"
Preprocessor definitions
#define NAME( x )
Global Variable house_control
struct house_control_rec house_control[100]
- Visible in:
-
- house.c
- Used in:
-
- House_boot() : house.c
- House_can_enter() : house.c
- House_save_all() : house.c
- House_save_control() : house.c
- do_house() : house.c
- find_house() : house.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_list_houses() : house.c
- hcontrol_pay_house() : house.c
Global Variable num_of_houses
int num_of_houses
- Visible in:
-
- house.c
- Used in:
-
- House_boot() : house.c
- House_save_all() : house.c
- House_save_control() : house.c
- find_house() : house.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_list_houses() : house.c
Global Variable HCONTROL_FORMAT
char* HCONTROL_FORMAT
- Visible in:
-
- house.c
- Used in:
-
- do_hcontrol() : house.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_pay_house() : house.c
External Variables
dirs
extern char* dirs[]
- Defined in:
-
- constants.c
world
extern struct room_data* world
- Defined in:
-
- db.c
top_of_world
extern int top_of_world
- Defined in:
-
- db.c
rev_dir
extern int rev_dir[]
- Defined in:
-
- constants.c
obj_index
extern struct index_data* obj_index
- Defined in:
-
- db.c
Global Function House_boot()
void House_boot ( void )
- Prototyped in:
-
- house.h
- Calls:
-
- House_load() : house.c
- House_save_control() : house.c
- basic_mud_log() : utils.c
- find_house() : house.c
- get_name_by_id() : db.c
- real_room() : db.c
- fclose(), feof(), fopen(), fread(), memset()
- Called by:
-
- boot_db() : db.c
- References Variables:
-
- house_control : house.c
- num_of_houses : house.c
- world : db.c
Global Function House_can_enter()
int House_can_enter ( struct char_data* ch, sh_int house )
- Prototyped in:
-
- house.h
- Calls:
-
- find_house() : house.c
- Called by:
-
- do_simple_move() : act.movement.c
- find_target_room() : act.wizard.c
- References Variables:
-
- house_control : house.c
Global Function House_crashsave()
void House_crashsave ( int vnum )
- Prototyped in:
-
- house.h
- Calls:
-
- House_get_filename() : house.c
- House_restore_weight() : house.c
- House_save() : house.c
- real_room() : db.c
- fclose(), fopen(), perror()
- Called by:
-
- House_save_all() : house.c
- do_save() : act.other.c
- hcontrol_build_house() : house.c
- References Variables:
-
- world : db.c
Global Function House_delete_file()
void House_delete_file ( int vnum )
- Calls:
-
- House_get_filename() : house.c
- fclose(), fopen(), perror(), sprintf(), unlink()
- Called by:
-
- hcontrol_destroy_house() : house.c
Global Function House_get_filename()
int House_get_filename ( int vnum, char* filename )
- Calls:
-
- sprintf()
- Called by:
-
- House_crashsave() : house.c
- House_delete_file() : house.c
- House_listrent() : house.c
- House_load() : house.c
Global Function House_listrent()
void House_listrent ( struct char_data* ch, int vnum )
- Prototyped in:
-
- house.h
- Calls:
-
- House_get_filename() : house.c
- Obj_from_store() : objsave.c
- free_obj() : db.c
- send_to_char() : comm.c
- fclose(), feof(), ferror(), fopen(), fread(), sprintf()
- References Variables:
-
- obj_index : db.c
Global Function House_load()
int House_load ( int vnum )
- Calls:
-
- House_get_filename() : house.c
- Obj_from_store() : objsave.c
- obj_to_room() : handler.c
- real_room() : db.c
- fclose(), feof(), ferror(), fopen(), fread(), perror()
- Called by:
-
- House_boot() : house.c
Global Function House_restore_weight()
void House_restore_weight ( struct obj_data* obj )
- Calls:
-
- House_restore_weight() : house.c
- Called by:
-
- House_crashsave() : house.c
- House_restore_weight() : house.c
Global Function House_save()
int House_save ( struct obj_data* obj, FILE* fp )
- Calls:
-
- House_save() : house.c
- Obj_to_store() : objsave.c
- Called by:
-
- House_crashsave() : house.c
- House_save() : house.c
Global Function House_save_all()
void House_save_all ( void )
- Prototyped in:
-
- house.h
- Calls:
-
- House_crashsave() : house.c
- real_room() : db.c
- Called by:
-
- heartbeat() : comm.c
- References Variables:
-
- house_control : house.c
- num_of_houses : house.c
- world : db.c
Global Function House_save_control()
void House_save_control ( void )
- Calls:
-
- fclose(), fopen(), fwrite(), perror()
- Called by:
-
- House_boot() : house.c
- do_house() : house.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_pay_house() : house.c
- References Variables:
-
- house_control : house.c
- num_of_houses : house.c
Global Function do_hcontrol()
void do_hcontrol ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- half_chop() : interpreter.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_list_houses() : house.c
- hcontrol_pay_house() : house.c
- is_abbrev() : interpreter.c
- send_to_char() : comm.c
- Used in:
-
- : interpreter.c
- References Variables:
-
- HCONTROL_FORMAT : house.c
Global Function do_house()
void do_house ( struct char_data* ch, char* argument, int cmd, int subcmd )
- Calls:
-
- House_save_control() : house.c
- find_house() : house.c
- get_id_by_name() : db.c
- get_name_by_id() : db.c
- one_argument() : interpreter.c
- send_to_char() : comm.c
- strcat(), strcpy()
- Used in:
-
- : interpreter.c
- References Variables:
-
- house_control : house.c
- world : db.c
- arg, buf
Global Function find_house()
int find_house ( int vnum )
- Called by:
-
- House_boot() : house.c
- House_can_enter() : house.c
- do_house() : house.c
- hcontrol_build_house() : house.c
- hcontrol_destroy_house() : house.c
- hcontrol_pay_house() : house.c
- References Variables:
-
- house_control : house.c
- num_of_houses : house.c
Global Function hcontrol_build_house()
void hcontrol_build_house ( struct char_data* ch, char* arg )
- Calls:
-
- House_crashsave() : house.c
- House_save_control() : house.c
- find_house() : house.c
- get_id_by_name() : db.c
- one_argument() : interpreter.c
- real_room() : db.c
- search_block() : interpreter.c
- send_to_char() : comm.c
- atoi(), sprintf(), time()
- Called by:
-
- do_hcontrol() : house.c
- References Variables:
-
- HCONTROL_FORMAT : house.c
- dirs : constants.c
- house_control : house.c
- num_of_houses : house.c
- rev_dir : constants.c
- world : db.c
- buf
Global Function hcontrol_destroy_house()
void hcontrol_destroy_house ( struct char_data* ch, char* arg )
- Calls:
-
- House_delete_file() : house.c
- House_save_control() : house.c
- basic_mud_log() : utils.c
- find_house() : house.c
- real_room() : db.c
- send_to_char() : comm.c
- atoi()
- Called by:
-
- do_hcontrol() : house.c
- References Variables:
-
- HCONTROL_FORMAT : house.c
- house_control : house.c
- num_of_houses : house.c
- world : db.c
Global Function hcontrol_list_houses()
void hcontrol_list_houses ( struct char_data* ch )
- Calls:
-
- get_name_by_id() : db.c
- send_to_char() : comm.c
- asctime(), localtime(), sprintf(), strcat(), strcpy()
- Called by:
-
- do_hcontrol() : house.c
- References Variables:
-
- house_control : house.c
- num_of_houses : house.c
- buf, buf
Global Function hcontrol_pay_house()
void hcontrol_pay_house ( struct char_data* ch, char* arg )
- Calls:
-
- House_save_control() : house.c
- MAX() : utils.c
- find_house() : house.c
- mudlog() : utils.c
- send_to_char() : comm.c
- atoi(), sprintf(), time()
- Called by:
-
- do_hcontrol() : house.c
- References Variables:
-
- HCONTROL_FORMAT : house.c
- house_control : house.c
- buf