-
Notifications
You must be signed in to change notification settings - Fork 0
/
match.h
46 lines (32 loc) · 1.33 KB
/
match.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
#include "copyright.h"
#include "db.h"
/* match functions */
/* Usage: init_match(player, name, type); match_this(); match_that(); ... */
/* Then get value from match_result() */
/* initialize matcher */
extern void init_match(dbref player, const char *name, int type);
extern void init_match_check_keys(dbref player, const char *name, int type);
/* match (LOOKUP_TOKEN)player */
extern void match_player(void);
/* match (NUMBER_TOKEN)number */
extern void match_absolute(void);
/* match "me" */
extern void match_me(void);
/* match "here" */
extern void match_here(void);
/* match something player is carrying */
extern void match_possession(void);
/* match something in the same room as player */
extern void match_neighbor(void);
/* match an exit from player's room */
extern void match_exit(void);
/* all of the above, except only Wizards do match_absolute and match_player */
extern void match_everything(void);
/* return match results */
extern dbref match_result(void); /* returns AMBIGUOUS for multiple inexacts */
extern dbref last_match_result(void); /* returns last result */
#define NOMATCH_MESSAGE "I don't see that here."
#define AMBIGUOUS_MESSAGE "I don't know which one you mean!"
extern dbref noisy_match_result(void); /* wrapper for match_result */
/* noisily notifies player */
/* returns matched object or NOTHING */