Planeshift
command.h
Go to the documentation of this file.
1 /*
2  * command.h
3  *
4  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  * This file will only be included by serverconsole.cpp and defines some
19  * structures for commands, the console accepts...
20  *
21  * Author: Matthias Braun <MatzeBraun@gmx.de>
22  */
23 
24 #ifndef __COMMANDS_H__
25 #define __COMMANDS_H__
26 
31 typedef int cmdfuncptr(const char *);
32 
39 struct COMMAND {
40  const char *name;
43  const char *doc;
44 };
45 
46 extern const COMMAND commands[];
47 
50 #endif
bool allowRemote
Definition: command.h:41
const char * name
Definition: command.h:40
int cmdfuncptr(const char *)
Definition: command.h:31
This is a little class to store an array of commands and functions to call with each command...
Definition: command.h:39
const char * doc
Definition: command.h:43
const COMMAND commands[]
cmdfuncptr * func
Definition: command.h:42