commands.h

ldmud-3.2.9/mud/lp-245/sys/commands.h · 936 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

#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 */

/* 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

#endif /* LPC_COMMANDS_H_ */

Site Stats

Snippets: 1791
Codebases: 571