1 |
root |
1.1 |
/* |
2 |
root |
1.11 |
* This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 |
pippijn |
1.7 |
* |
4 |
root |
1.12 |
* Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 |
root |
1.9 |
* Copyright (©) 1994,2007 Mark Wedel |
6 |
|
|
* Copyright (©) 1992,2007 Frank Tore Johansen |
7 |
pippijn |
1.7 |
* |
8 |
root |
1.11 |
* Deliantra is free software: you can redistribute it and/or modify |
9 |
root |
1.10 |
* it under the terms of the GNU General Public License as published by |
10 |
|
|
* the Free Software Foundation, either version 3 of the License, or |
11 |
|
|
* (at your option) any later version. |
12 |
pippijn |
1.7 |
* |
13 |
root |
1.10 |
* This program is distributed in the hope that it will be useful, |
14 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
|
* GNU General Public License for more details. |
17 |
pippijn |
1.7 |
* |
18 |
root |
1.10 |
* You should have received a copy of the GNU General Public License |
19 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 |
root |
1.9 |
* |
21 |
root |
1.11 |
* The authors can be reached via e-mail to <support@deliantra.net> |
22 |
pippijn |
1.7 |
*/ |
23 |
root |
1.1 |
|
24 |
|
|
/* |
25 |
|
|
* Crossfire commands |
26 |
|
|
* ++Jam |
27 |
|
|
* |
28 |
|
|
* ''', run and fire-keys are parsed separately (cannot be overrided). |
29 |
|
|
*/ |
30 |
|
|
|
31 |
|
|
|
32 |
pippijn |
1.5 |
/* The initialised arrays were removed from this file and are now |
33 |
|
|
* in commands.c. initialising the arrays in any header file |
34 |
root |
1.1 |
* is stupid, as it means that header file can only be included |
35 |
|
|
* in one source file (so what is the point of putting them in a header |
36 |
|
|
* file then?). Header files should be used like this one - to declare |
37 |
|
|
* the structures externally - they actual structures should resided/ |
38 |
pippijn |
1.5 |
* be initialised in one of the source files. |
39 |
root |
1.1 |
*/ |
40 |
|
|
|
41 |
|
|
#ifndef COMMANDS_H |
42 |
|
|
#define COMMANDS_H |
43 |
|
|
|
44 |
|
|
typedef int (*CommFunc)(object *op, char *params); |
45 |
|
|
|
46 |
elmex |
1.2 |
struct CommArray_s { /* global list's structure */ |
47 |
root |
1.1 |
const char *name; |
48 |
|
|
CommFunc func; |
49 |
|
|
float time; /* How long it takes to execute this command */ |
50 |
elmex |
1.2 |
}; |
51 |
root |
1.1 |
|
52 |
root |
1.13 |
extern CommArray_s Commands[], SocketCommands[], WizCommands[]; |
53 |
root |
1.1 |
|
54 |
root |
1.13 |
extern const int CommandsSize, SocketCommandsSize, WizCommandsSize; |
55 |
root |
1.1 |
|
56 |
|
|
#endif |