File olc.c


Included Files

  • #include "conf.h"
  • #include "sysdep.h"
  • #include <stdio.h>
  • #include <ctype.h>
  • #include <stdlib.h>
  • #include <string.h>
  • #include <sys/types.h>
  • #include <unistd.h>
  • #include <limits.h>
  • #include <sys/time.h>
  • #include <assert.h>
  • #include "structs.h"
  • #include "utils.h"
  • #include "comm.h"
  • #include "interpreter.h"
  • #include "handler.h"
  • #include "db.h"
  • #include "olc.h"

  • 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

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

  • Global Variable olc_commands

    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 )
    Calls:
  • 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:
  • mob_proto : db.c
  • obj_proto : db.c
  • olc_ch : olc.c
  • olc_modes : olc.c
  • world : db.c
  • arg, buf

  • Global Function olc_bitvector()

    void olc_bitvector ( int* bv, char** names, char* arg )
    Calls:
  • one_argument() : interpreter.c
  • search_block() : interpreter.c
  • send_to_char() : comm.c
  • skip_spaces() : interpreter.c
  • sprintbit() : utils.c
  • sprintf()
  • References Variables:
  • olc_ch : olc.c
  • buf, buf

  • 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:
  • olc_ch : olc.c
  • olc_commands : olc.c
  • buf

  • 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
  • free(), sprintf(), strlen()
  • Called by:
  • olc_interpreter() : olc.c
  • References Variables:
  • OK : config.c
  • olc_ch : olc.c
  • buf