ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/commands.h
Revision: 1.14
Committed: Fri Jun 26 16:32:10 2009 UTC (14 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_80, rel-2_79
Changes since 1.13: +0 -55 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 /*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 1994,2007 Mark Wedel
6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 *
8 * Deliantra is free software: you can redistribute it and/or modify
9 * 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 *
13 * 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 *
18 * 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 *
21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */
23
24 /*
25 * Crossfire commands
26 * ++Jam
27 *
28 * ''', run and fire-keys are parsed separately (cannot be overrided).
29 */
30
31
32 /* The initialised arrays were removed from this file and are now
33 * in commands.c. initialising the arrays in any header file
34 * 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 * be initialised in one of the source files.
39 */
40
41 #ifndef COMMANDS_H
42 #define COMMANDS_H
43
44 typedef int (*CommFunc)(object *op, char *params);
45
46 struct CommArray_s { /* global list's structure */
47 const char *name;
48 CommFunc func;
49 float time; /* How long it takes to execute this command */
50 };
51
52 extern CommArray_s Commands[], SocketCommands[], WizCommands[];
53
54 extern const int CommandsSize, SocketCommandsSize, WizCommandsSize;
55
56 #endif