File house.c

* Functions for house administration (creation, deletion, etc. *


Included Files


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_list_guests()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

const 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

world
extern struct room_data* world
Defined in: db.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
  __errno_location(), fclose(), feof(), fopen(), fread(), memset(), perror()
Called by: boot_db()db.c
References Variables: house_controlhouse.c
  num_of_houseshouse.c
  worlddb.c

Global Function House_can_enter()

int House_can_enter ( struct char_data* ch, room_vnum house )
Prototyped in: house.h
Calls: find_house()house.c
Called by: do_simple_move()act.movement.c
  do_switch()act.wizard.c
  find_target_room()act.wizard.c
References Variables: house_controlhouse.c

Global Function House_crashsave()

void House_crashsave ( room_vnum 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: worlddb.c

Global Function House_delete_file()

void House_delete_file ( int vnum )
Prototyped in: house.c
Calls: House_get_filename()house.c
  basic_mud_log()utils.c
  __errno_location(), fclose(), fopen(), remove(), strerror()
Called by: hcontrol_destroy_house()house.c

Global Function House_get_filename()

int House_get_filename ( int vnum, char* filename )
Prototyped in: house.c
Calls: sprintf()
Called by: House_crashsave()house.c
  House_delete_file()house.c
  House_listrent()house.c
  House_load()house.c

Global Function House_list_guests()

void House_list_guests ( struct char_data* ch, int i, int quiet )
Prototyped in: house.h
Calls: CAP()utils.c
  get_name_by_id()db.c
  send_to_char()comm.c
  sprintf(), strcat(), strcpy()
Called by: do_house()house.c
  hcontrol_list_houses()house.c
References Variables: house_controlhouse.c

Global Function House_listrent()

void House_listrent ( struct char_data* ch, room_vnum 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(), strlen()
References Variables: obj_indexdb.c

Global Function House_load()

int House_load ( room_vnum vnum )
Prototyped in: house.c
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 )
Prototyped in: house.c
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 )
Prototyped in: house.c
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_controlhouse.c
  num_of_houseshouse.c
  worlddb.c

Global Function House_save_control()

void House_save_control ( void )
Prototyped in: house.c
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_controlhouse.c
  num_of_houseshouse.c

Global Function do_hcontrol()

void do_hcontrol ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: house.c
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_FORMAThouse.c

Global Function do_house()

void do_house ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: house.c
Calls: House_list_guests()house.c
  House_save_control()house.c
  find_house()house.c
  get_id_by_name()db.c
  one_argument()interpreter.c
  send_to_char()comm.c
Used in:  interpreter.c
References Variables: argdb.c
  house_controlhouse.c
  top_of_worlddb.c
  worlddb.c

Global Function find_house()

int find_house ( room_vnum vnum )
Prototyped in: house.c
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_controlhouse.c
  num_of_houseshouse.c

Global Function hcontrol_build_house()

void hcontrol_build_house ( struct char_data* ch, char* arg )
Prototyped in: house.c
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_FORMAThouse.c
  bufdb.c
  dirsconstants.c
  house_controlhouse.c
  num_of_houseshouse.c
  rev_dirconstants.c
  top_of_worlddb.c
  worlddb.c

Global Function hcontrol_destroy_house()

void hcontrol_destroy_house ( struct char_data* ch, char* arg )
Prototyped in: house.c
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_FORMAThouse.c
  house_controlhouse.c
  num_of_houseshouse.c
  worlddb.c

Global Function hcontrol_list_houses()

void hcontrol_list_houses ( struct char_data* ch )
Prototyped in: house.c
Calls: CAP()utils.c
  House_list_guests()house.c
  get_name_by_id()db.c
  send_to_char()comm.c
  asctime(), localtime(), sprintf(), strcat(), strcpy()
Called by: do_hcontrol()house.c
  do_show()act.wizard.c
References Variables: bufdb.c
  house_controlhouse.c
  num_of_houseshouse.c

Global Function hcontrol_pay_house()

void hcontrol_pay_house ( struct char_data* ch, char* arg )
Prototyped in: house.c
Calls: House_save_control()house.c
  MAX()utils.c
  basic_mud_log()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_FORMAThouse.c
  bufdb.c
  dummy_mobdb.c
  house_controlhouse.c