Crossfire Server, Trunk  R20574
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

◆ command_function

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

◆ cmd_shutdown_time

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

◆ Commands

Normal game commands.

Definition at line 36 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

◆ CommandsSize

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

◆ CommunicationCommands

command_array_struct CommunicationCommands[]

Chat/shout related commands.

Definition at line 129 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

◆ CommunicationCommandSize

const int CommunicationCommandSize

Length of the CommunicationCommands array.

Definition at line 199 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

◆ WizCommands

command_array_struct WizCommands[]

Wizard commands.

Definition at line 202 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().

◆ WizCommandsSize

const int WizCommandsSize

Length of WizCommands array.

Definition at line 265 of file commands.c.

Referenced by execute_newserver_command(), and show_commands().