blob: 2bb876d63ed757581c41b02ce9ad5725065fb15c [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// thing/commands.h -- command handling header
4//
5// $Id: commands.h 8707 2014-02-23 22:38:34Z Zesstra $
6
7#ifndef __THING_COMMANDS_H__
8#define __THING_COMMANDS_H__
9
10// properties
11
12#define P_COMMANDS "commands"
13
14#endif // __THING_COMMANDS_H__
15
16#ifdef NEED_PROTOTYPES
17
18#ifndef __THING_COMMANDS_H_PROTO__
19#define __THING_COMMANDS_H_PROTO__
20
21// prototypes
22
23// add commands to the command list of the object
24varargs void AddCmd(mixed cmd, mixed func, mixed flag, mixed cmdid);
25
26// remove a command
27varargs int RemoveCmd(mixed cmd, int del_norule, mixed onlyid);
28// Set- und Query-Methoden
29static mapping _set_commands(mapping commands);
30static mapping _query_commands();
31
32
33// internal
34static int _execute(mixed fun, string str, mixed *parsed);
35static int _process_command(string str, string *noparsestr,mixed fun, mixed flag, mixed rule);
36
37public int _cl(string str);
38
39#endif // __THING_COMMANDS_H_PROTO__
40
41#endif // NEED_PROTOYPES