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
;
41
bool
allowRemote
;
42
cmdfuncptr
*
func
;
43
const
char
*
doc
;
44
};
45
46
extern
const
COMMAND
commands
[];
47
50
#endif
COMMAND::allowRemote
bool allowRemote
Definition:
command.h:41
COMMAND::name
const char * name
Definition:
command.h:40
cmdfuncptr
int cmdfuncptr(const char *)
Definition:
command.h:31
COMMAND
This is a little class to store an array of commands and functions to call with each command...
Definition:
command.h:39
COMMAND::doc
const char * doc
Definition:
command.h:43
commands
const COMMAND commands[]
COMMAND::func
cmdfuncptr * func
Definition:
command.h:42
common
util
command.h
Generated on Sat Jun 19 2021 05:00:30 for Planeshift by
1.8.11