-
Notifications
You must be signed in to change notification settings - Fork 17
/
act_move.h
82 lines (76 loc) · 3.88 KB
/
act_move.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/***************************************************************************
* Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, *
* Michael Seifert, Hans Henrik Strfeldt, Tom Madsen, and Katja Nyboe. *
* *
* Merc Diku Mud improvments copyright (C) 1992, 1993 by Michael *
* Chastain, Michael Quan, and Mitchell Tse. *
* *
* In order to use any part of this Merc Diku Mud, you must comply with *
* both the original Diku license in 'license.doc' as well the Merc *
* license in 'license.txt'. In particular, you may not remove either of *
* these copyright notices. *
* *
* Much time and thought has gone into this software and you are *
* benefitting. We hope that you share your changes too. What goes *
* around, comes around. *
***************************************************************************/
/***************************************************************************
* ROM 2.4 is copyright 1993-1998 Russ Taylor *
* ROM has been brought to you by the ROM consortium *
* Russ Taylor ([email protected]) *
* Gabrielle Taylor ([email protected]) *
* Brian Moore ([email protected]) *
* By using this code, you have agreed to follow the terms of the *
* ROM license, in the file Rom24/doc/rom.license *
***************************************************************************/
#ifndef __ROM_ACT_MOVE_H
#define __ROM_ACT_MOVE_H
#include "merc.h"
/* Sub-routines and filters. */
int do_door_filter_find (CHAR_T *ch, char *argument);
bool do_door_filter_is_door (CHAR_T *ch, EXIT_T *pexit, OBJ_T *obj,
flag_t *out_flags, bool *out_container, int *out_key);
bool do_door_filter_can_open (CHAR_T *ch, EXIT_T *pexit, OBJ_T *obj);
bool do_door_filter_can_close (CHAR_T *ch, EXIT_T *pexit, OBJ_T *obj);
bool do_door_filter_can_lock (CHAR_T *ch, EXIT_T *pexit, OBJ_T *obj);
bool do_door_filter_can_unlock (CHAR_T *ch, EXIT_T *pexit, OBJ_T *obj);
bool do_door_filter_can_pick (CHAR_T *ch, EXIT_T *pexit, OBJ_T *obj);
void do_open_object (CHAR_T *ch, OBJ_T *obj);
void do_close_object (CHAR_T *ch, OBJ_T *obj);
void do_unlock_object (CHAR_T *ch, OBJ_T *obj);
void do_lock_object (CHAR_T *ch, OBJ_T *obj);
void do_pick_object (CHAR_T *ch, OBJ_T *obj);
void do_open_door (CHAR_T *ch, int door);
void do_close_door (CHAR_T *ch, int door);
void do_unlock_door (CHAR_T *ch, int door);
void do_lock_door (CHAR_T *ch, int door);
void do_pick_door (CHAR_T *ch, int door);
void do_door (CHAR_T *ch, char *argument, char *arg_msg,
void (*func_obj) (CHAR_T *, OBJ_T *),
void (*func_door) (CHAR_T *, int));
bool do_filter_change_position (CHAR_T *ch, int pos, const char *same_msg);
void do_change_position_sub(CHAR_T *ch, const char *argument, int pos,
bool stay_on, const char *msg_cant_on, const char *msg_cant);
/* Commands. */
DECLARE_DO_FUN (do_north);
DECLARE_DO_FUN (do_east);
DECLARE_DO_FUN (do_south);
DECLARE_DO_FUN (do_west);
DECLARE_DO_FUN (do_up);
DECLARE_DO_FUN (do_down);
DECLARE_DO_FUN (do_open);
DECLARE_DO_FUN (do_close);
DECLARE_DO_FUN (do_unlock);
DECLARE_DO_FUN (do_lock);
DECLARE_DO_FUN (do_pick);
DECLARE_DO_FUN (do_stand);
DECLARE_DO_FUN (do_rest);
DECLARE_DO_FUN (do_sit);
DECLARE_DO_FUN (do_sleep);
DECLARE_DO_FUN (do_wake);
DECLARE_DO_FUN (do_sneak);
DECLARE_DO_FUN (do_hide);
DECLARE_DO_FUN (do_visible);
DECLARE_DO_FUN (do_recall);
DECLARE_DO_FUN (do_enter);
#endif