Crossfire Server, Trunk  R20513
Data Structures | Typedefs | Variables
commands.h File Reference

Defines and structures related to commands the player can send. More...

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
 Represents one command. More...
 

Typedefs

typedef void(* command_function) (object *op, const char *params)
 One command function. More...
 

Variables

int cmd_shutdown_time
 Time, in seconds from epoch, of server shutdown. More...
 
command_array_struct Commands []
 Normal game commands. More...
 
const int CommandsSize
 Length of Commands array. More...
 
command_array_struct CommunicationCommands []
 Chat/shout related commands. More...
 
const int CommunicationCommandSize
 Length of the CommunicationCommands array. More...
 
command_array_struct WizCommands []
 Wizard commands. More...
 
const int WizCommandsSize
 Length of WizCommands array. More...
 

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().