| 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.15 |
* Deliantra is free software: you can redistribute it and/or modify it under |
| 9 |
|
|
* the terms of the Affero GNU General Public License as published by the |
| 10 |
|
|
* Free Software Foundation, either version 3 of the License, or (at your |
| 11 |
|
|
* 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.15 |
* You should have received a copy of the Affero GNU General Public License |
| 19 |
|
|
* and the GNU General Public License along with this program. If not, see |
| 20 |
|
|
* <http://www.gnu.org/licenses/>. |
| 21 |
root |
1.9 |
* |
| 22 |
root |
1.11 |
* The authors can be reached via e-mail to <support@deliantra.net> |
| 23 |
pippijn |
1.7 |
*/ |
| 24 |
root |
1.1 |
|
| 25 |
|
|
/* |
| 26 |
|
|
* Crossfire commands |
| 27 |
|
|
* ++Jam |
| 28 |
|
|
* |
| 29 |
|
|
* ''', run and fire-keys are parsed separately (cannot be overrided). |
| 30 |
|
|
*/ |
| 31 |
|
|
|
| 32 |
|
|
|
| 33 |
pippijn |
1.5 |
/* The initialised arrays were removed from this file and are now |
| 34 |
|
|
* in commands.c. initialising the arrays in any header file |
| 35 |
root |
1.1 |
* is stupid, as it means that header file can only be included |
| 36 |
|
|
* in one source file (so what is the point of putting them in a header |
| 37 |
|
|
* file then?). Header files should be used like this one - to declare |
| 38 |
|
|
* the structures externally - they actual structures should resided/ |
| 39 |
pippijn |
1.5 |
* be initialised in one of the source files. |
| 40 |
root |
1.1 |
*/ |
| 41 |
|
|
|
| 42 |
|
|
#ifndef COMMANDS_H |
| 43 |
|
|
#define COMMANDS_H |
| 44 |
|
|
|
| 45 |
|
|
typedef int (*CommFunc)(object *op, char *params); |
| 46 |
|
|
|
| 47 |
elmex |
1.2 |
struct CommArray_s { /* global list's structure */ |
| 48 |
root |
1.1 |
const char *name; |
| 49 |
|
|
CommFunc func; |
| 50 |
|
|
float time; /* How long it takes to execute this command */ |
| 51 |
elmex |
1.2 |
}; |
| 52 |
root |
1.1 |
|
| 53 |
root |
1.13 |
extern CommArray_s Commands[], SocketCommands[], WizCommands[]; |
| 54 |
root |
1.1 |
|
| 55 |
root |
1.13 |
extern const int CommandsSize, SocketCommandsSize, WizCommandsSize; |
| 56 |
root |
1.1 |
|
| 57 |
|
|
#endif |