| #ifndef LPC_COMMANDS_H_ |
| #define LPC_COMMANDS_H_ |
| |
| /* Flags accepted by add_action(fun, verb, flag). |
| * (Below, VERB is what the player enters). |
| * Negative flag values allow VERB to be just the first -<flag> |
| * characters of <verb> (abbreviated verb). |
| */ |
| |
| #define AA_VERB 0 /* VERB must be <verb> */ |
| #define AA_SHORT 1 /* VERB must start with <verb>, |
| * args do not include extra characters */ |
| #define AA_NOSPACE 2 /* VERB must start with <verb>, |
| * args and verb do include extra characters */ |
| #define AA_IMM_ARGS 3 /* VERB must start with <verb>, |
| * args do include extra characters */ |
| |
| /* Bitflags accepted by query_actions(object ob, int mask) |
| */ |
| |
| #define QA_VERB 1 |
| #define QA_TYPE 2 |
| #define QA_SHORT_VERB 4 |
| #define QA_OBJECT 8 |
| #define QA_FUNCTION 16 |
| |
| |
| /* Indices in the arrays returned from command_stack() |
| */ |
| |
| #define CMD_VERB 0 |
| #define CMD_TEXT 1 |
| #define CMD_ORIGIN 2 |
| #define CMD_PLAYER 3 |
| #define CMD_FAIL 4 |
| #define CMD_FAILOBJ 5 |
| |
| #define CMD_SIZE 6 |
| |
| |
| /* Indices into the subarrays returned from match_command() |
| */ |
| #define CMDM_VERB 0 |
| #define CMDM_ARG 1 |
| #define CMDM_OBJECT 2 |
| #define CMDM_FUN 3 |
| |
| #define CMDM_SIZE 4 |
| |
| #endif /* LPC_COMMANDS_H_ */ |