/*
* This file is part of Deliantra, the Roguelike Realtime MMORPG.
*
* Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
* Copyright (©) 1994,2007 Mark Wedel
* Copyright (©) 1992,2007 Frank Tore Johansen
*
* Deliantra is free software: you can redistribute it and/or modify it under
* the terms of the Affero GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the Affero GNU General Public License
* and the GNU General Public License along with this program. If not, see
* .
*
* The authors can be reached via e-mail to
*/
/*
* Crossfire commands
* ++Jam
*
* ''', run and fire-keys are parsed separately (cannot be overrided).
*/
/* The initialised arrays were removed from this file and are now
* in commands.c. initialising the arrays in any header file
* is stupid, as it means that header file can only be included
* in one source file (so what is the point of putting them in a header
* file then?). Header files should be used like this one - to declare
* the structures externally - they actual structures should resided/
* be initialised in one of the source files.
*/
#ifndef COMMANDS_H
#define COMMANDS_H
typedef int (*CommFunc)(object *op, char *params);
struct CommArray_s { /* global list's structure */
const char *name;
CommFunc func;
float time; /* How long it takes to execute this command */
};
extern CommArray_s Commands[], SocketCommands[], WizCommands[];
extern const int CommandsSize, SocketCommandsSize, WizCommandsSize;
#endif