File olc.c


Included Files


Preprocessor definitions

#define OLC_USAGE "Usage: olc { . | set | show | obj | mob | room} [args]\r\n"

Global Variable olc_ch

struct char_data* olc_ch
Visible in:  olc.c
Used in: do_olc()olc.c
  olc_bitvector()olc.c
  olc_interpreter()olc.c
  olc_string()olc.c

Global Variable olc_modes

const char* olc_modes[]
Visible in:  olc.c
Used in: do_olc()olc.c

Global Variable olc_commands

const char* olc_commands[]
Visible in:  olc.c
Used in: olc_interpreter()olc.c

External Variables

world
extern struct room_data* world
Defined in: db.c

obj_proto
extern struct obj_data* obj_proto
Defined in: db.c

mob_proto
extern struct char_data* mob_proto
Defined in: db.c


Global Function can_modify()

int can_modify ( struct char_data* ch, int vnum )
Prototyped in: olc.c
Called by: do_olc()olc.c

Global Function do_olc()

void do_olc ( struct char_data* ch, char* argument, int cmd, int subcmd )
Prototyped in: olc.c
Calls: basic_mud_log()utils.c
  can_modify()olc.c
  half_chop()interpreter.c
  olc_interpreter()olc.c
  olc_set_show()olc.c
  one_argument()interpreter.c
  real_mobile()db.c
  real_object()db.c
  real_room()db.c
  search_block()interpreter.c
  send_to_char()comm.c
  atoi(), sprintf(), strcmp()
Used in:  interpreter.c
References Variables: argdb.c
  bufdb.c
  dummy_mobdb.c
  mob_protodb.c
  obj_protodb.c
  olc_cholc.c
  olc_modesolc.c
  top_of_worlddb.c
  worlddb.c

Global Function olc_bitvector()

void olc_bitvector ( int* bv, const char** names, char* arg )
Prototyped in: olc.c
Calls: CAP()utils.c
  one_argument()interpreter.c
  search_block()interpreter.c
  send_to_char()comm.c
  skip_spaces()interpreter.c
  sprintbit()utils.c
  sprintf()
References Variables: bufdb.c
  buf2db.c
  olc_cholc.c

Global Function olc_interpreter()

void olc_interpreter ( void* targ, int mode, char* arg )
Prototyped in: olc.c
Calls: basic_mud_log()utils.c
  half_chop()interpreter.c
  olc_string()olc.c
  search_block()interpreter.c
  send_to_char()comm.c
  sprintf()
Called by: do_olc()olc.c
References Variables: bufdb.c
  olc_cholc.c
  olc_commandsolc.c

Global Function olc_set_show()

void olc_set_show ( struct char_data* ch, int olc_mode, char* arg )
Prototyped in: olc.c
Called by: do_olc()olc.c

Global Function olc_string()

void olc_string ( char** string, size_t maxlen, char* arg )
Prototyped in: olc.c
Calls: send_to_char()comm.c
  skip_spaces()interpreter.c
  str_dup()utils.c
  string_write()modify.c
  free(), sprintf(), strlen()
Called by: olc_interpreter()olc.c
References Variables: OKconfig.c
  bufdb.c
  olc_cholc.c