Crossfire Server, Trunk  R20608
commands.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  command_array_struct
 

Typedefs

typedef void(* command_function )(object *op, const char *params)
 

Variables

int cmd_shutdown_time
 
command_array_struct Commands []
 
const int CommandsSize
 
command_array_struct CommunicationCommands []
 
const int CommunicationCommandSize
 
command_array_struct WizCommands []
 
const int WizCommandsSize
 

Detailed Description

Defines and structures related to commands the player can send.

Definition in file commands.h.

Typedef Documentation

typedef void(* command_function)(object *op, const char *params)

One command function.

Parameters
opthe player executing the command
paramsthe command parameters; empty string if no commands are given; leading and trailing spaces have been removed

Definition at line 34 of file commands.h.

Variable Documentation

int cmd_shutdown_time

Time, in seconds from epoch, of server shutdown.

Definition at line 43 of file c_wiz.c.

Referenced by command_shutdown(), do_server(), and server_check_shutdown().

Normal game commands.

Definition at line 36 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

const int CommandsSize

Length of Commands array.

Definition at line 126 of file commands.c.

Referenced by execute_newserver_command(), init_commands(), and show_commands().

command_array_struct CommunicationCommands[]

Chat/shout related commands.

Definition at line 129 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

const int CommunicationCommandSize

Length of the CommunicationCommands array.

Definition at line 199 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

command_array_struct WizCommands[]

Wizard commands.

Definition at line 202 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

const int WizCommandsSize

Length of WizCommands array.

Definition at line 265 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().