File act.movement.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 "spells.h"
  • #include "house.h"

  • Preprocessor definitions

    #define NEED_OPEN 1

    #define NEED_CLOSED 2

    #define NEED_UNLOCKED 4

    #define NEED_LOCKED 8

    #define EXITN( room, door )

    #define OPEN_DOOR( room, obj, door )

    #define LOCK_DOOR( room, obj, door )

    #define DOOR_IS_OPENABLE( ch, obj, door )

    #define DOOR_IS_OPEN( ch, obj, door )

    #define DOOR_IS_UNLOCKED( ch, obj, door )

    #define DOOR_IS_PICKPROOF( ch, obj, door )

    #define DOOR_IS_CLOSED( ch, obj, door )

    #define DOOR_IS_LOCKED( ch, obj, door )

    #define DOOR_KEY( ch, obj, door )

    #define DOOR_LOCK( ch, obj, door )


    Global Variable cmd_door

    char* cmd_door[]
    Visible in:
  • act.movement.c
  • Used in:
  • do_doorcmd() : act.movement.c
  • do_gen_door() : act.movement.c

  • Global Variable flags_door

    int flags_door[]
    Visible in:
  • act.movement.c
  • Used in:
  • do_gen_door() : act.movement.c

  • External Variables

    world
    extern struct room_data* world
    Defined in:
  • db.c
  • character_list
    extern struct char_data* character_list

    Defined in:
  • db.c
  • descriptor_list
    extern struct descriptor_data* descriptor_list

    Defined in:
  • comm.c
  • obj_index
    extern struct index_data* obj_index

    Defined in:
  • db.c
  • rev_dir
    extern int rev_dir[]

    Defined in:
  • constants.c
  • dirs
    extern char* dirs[]

    Defined in:
  • constants.c
  • movement_loss
    extern int movement_loss[]

    Defined in:
  • constants.c

  • Global Function do_doorcmd()

    void do_doorcmd ( struct char_data* ch, struct obj_data* obj, int door, int scmd )
    Calls:
  • act() : comm.c
  • fname() : handler.c
  • send_to_char() : comm.c
  • sprintf(), strcpy(), strlen()
  • Called by:
  • do_gen_door() : act.movement.c
  • References Variables:
  • OK : config.c
  • cmd_door : act.movement.c
  • rev_dir : constants.c
  • world : db.c
  • buf

  • Global Function do_enter()

    void do_enter ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • one_argument() : interpreter.c
  • perform_move() : act.movement.c
  • send_to_char() : comm.c
  • str_cmp() : utils.c
  • sprintf()
  • Used in:
  • : interpreter.c
  • References Variables:
  • world : db.c
  • buf, buf

  • Global Function do_follow()

    void do_follow ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • circle_follow() : utils.c
  • get_char_room_vis() : handler.c
  • one_argument() : interpreter.c
  • send_to_char() : comm.c
  • Used in:
  • : interpreter.c
  • References Variables:
  • NOPERSON : config.c
  • buf

  • Global Function do_gen_door()

    void do_gen_door ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • do_doorcmd() : act.movement.c
  • find_door() : act.movement.c
  • generic_find() : handler.c
  • has_key() : act.movement.c
  • ok_pick() : act.movement.c
  • send_to_char() : comm.c
  • skip_spaces() : interpreter.c
  • two_arguments() : interpreter.c
  • sprintf()
  • Used in:
  • : interpreter.c
  • References Variables:
  • cmd_door : act.movement.c
  • flags_door : act.movement.c
  • world : db.c
  • buf

  • Global Function do_leave()

    void do_leave ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • perform_move() : act.movement.c
  • send_to_char() : comm.c
  • Used in:
  • : interpreter.c
  • References Variables:
  • world : db.c

  • Global Function do_move()

    void do_move ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • perform_move() : act.movement.c
  • Used in:
  • : interpreter.c

  • Global Function do_rest()

    void do_rest ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • Used in:
  • : interpreter.c

  • Global Function do_simple_move()

    int do_simple_move ( struct char_data* ch, int dir, int need_specials_check )
    Prototyped in:
  • utils.h
  • Calls:
  • House_can_enter() : house.c
  • act() : comm.c
  • char_from_room() : handler.c
  • char_to_room() : handler.c
  • death_cry() : fight.c
  • extract_char() : handler.c
  • has_boat() : act.movement.c
  • log_death_trap() : utils.c
  • look_at_room() : act.informative.c
  • num_pc_in_room() : utils.c
  • send_to_char() : comm.c
  • sprintf()
  • Called by:
  • do_flee() : act.offensive.c
  • perform_move() : act.movement.c
  • References Variables:
  • dirs : constants.c
  • movement_loss : constants.c
  • world : db.c
  • buf

  • Global Function do_sit()

    void do_sit ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • send_to_char() : comm.c
  • Used in:
  • : interpreter.c

  • Global Function do_sleep()

    void do_sleep ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • send_to_char() : comm.c
  • Used in:
  • : interpreter.c

  • Global Function do_stand()

    void do_stand ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • Used in:
  • : interpreter.c

  • Global Function do_wake()

    void do_wake ( struct char_data* ch, char* argument, int cmd, int subcmd )
    Calls:
  • act() : comm.c
  • get_char_room_vis() : handler.c
  • one_argument() : interpreter.c
  • send_to_char() : comm.c
  • Used in:
  • : interpreter.c
  • References Variables:
  • NOPERSON : config.c
  • arg

  • Global Function find_door()

    int find_door ( struct char_data* ch, char* type, char* dir, char* cmdname )
    Calls:
  • isname() : handler.c
  • search_block() : interpreter.c
  • send_to_char() : comm.c
  • sprintf(), strchr()
  • Called by:
  • do_gen_door() : act.movement.c
  • References Variables:
  • dirs : constants.c
  • world : db.c
  • buf

  • Global Function has_boat()

    int has_boat ( struct char_data* ch )
    Calls:
  • find_eq_pos() : act.item.c
  • Called by:
  • do_simple_move() : act.movement.c

  • Global Function has_key()

    int has_key ( struct char_data* ch, int key )
    Called by:
  • do_gen_door() : act.movement.c
  • References Variables:
  • obj_index : db.c

  • Global Function ok_pick()

    int ok_pick ( struct char_data* ch, int keynum, int pickproof, int scmd )
    Calls:
  • number() : utils.c
  • send_to_char() : comm.c
  • Called by:
  • do_gen_door() : act.movement.c

  • Global Function perform_move()

    int perform_move ( struct char_data* ch, int dir, int need_specials_check )
    Prototyped in:
  • utils.h
  • Calls:
  • act() : comm.c
  • do_simple_move() : act.movement.c
  • fname() : handler.c
  • perform_move() : act.movement.c
  • send_to_char() : comm.c
  • sprintf()
  • Called by:
  • do_enter() : act.movement.c
  • do_leave() : act.movement.c
  • do_move() : act.movement.c
  • hunt_victim() : graph.c
  • king_welmar() : castle.c
  • mayor() : spec_procs.c
  • mobile_activity() : mobact.c
  • perform_move() : act.movement.c
  • References Variables:
  • world : db.c
  • buf