blob: 398237256bd24102eb12bbe54dde7ccf14f380c3 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001#ifndef LPC_COMMANDS_H_
2#define LPC_COMMANDS_H_
3
4/* Flags accepted by add_action(fun, verb, flag).
5 * (Below, VERB is what the player enters).
6 * Negative flag values allow VERB to be just the first -<flag>
7 * characters of <verb> (abbreviated verb).
8 */
9
10#define AA_VERB 0 /* VERB must be <verb> */
11#define AA_SHORT 1 /* VERB must start with <verb>,
12 * args do not include extra characters */
13#define AA_NOSPACE 2 /* VERB must start with <verb>,
14 * args and verb do include extra characters */
15#define AA_IMM_ARGS 3 /* VERB must start with <verb>,
16 * args do include extra characters */
17
18/* Bitflags accepted by query_actions(object ob, int mask)
19 */
20
21#define QA_VERB 1
22#define QA_TYPE 2
23#define QA_SHORT_VERB 4
24#define QA_OBJECT 8
25#define QA_FUNCTION 16
26
27
28/* Indices in the arrays returned from command_stack()
29 */
30
31#define CMD_VERB 0
32#define CMD_TEXT 1
33#define CMD_ORIGIN 2
34#define CMD_PLAYER 3
35#define CMD_FAIL 4
36#define CMD_FAILOBJ 5
37
38#define CMD_SIZE 6
39
40
41/* Indices into the subarrays returned from match_command()
42 */
43#define CMDM_VERB 0
44#define CMDM_ARG 1
45#define CMDM_OBJECT 2
46#define CMDM_FUN 3
47
48#define CMDM_SIZE 4
49
50#endif /* LPC_COMMANDS_H_ */