ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/commands.h
Revision: 1.18
Committed: Tue Apr 6 22:59:28 2010 UTC (14 years, 1 month ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +0 -0 lines
State: FILE REMOVED
Log Message:
remove artificial run/fire delay, refactoring

File Contents

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