Crossfire Server, Trunk
|
Go to the source code of this file.
Data Structures | |
struct | shutdown_s |
Macros | |
#define | COMMAND_TYPE_COMMUNICATION 1 |
#define | COMMAND_TYPE_NORMAL 0 |
#define | COMMAND_TYPE_WIZARD 2 |
Typedefs | |
typedef void(* | command_function) (object *op, const char *params) |
typedef void(* | command_function_extra) (object *op, const char *params, const char *extra) |
typedef uint64_t | command_registration |
Enumerations | |
enum | shutdown_type { SHUTDOWN_NONE, SHUTDOWN_TIME, SHUTDOWN_IDLE } |
Variables | |
struct shutdown_s | shutdown_state |
Defines and structures related to commands the player can send.
Definition in file commands.h.
#define COMMAND_TYPE_COMMUNICATION 1 |
Communication commands.
Definition at line 37 of file commands.h.
#define COMMAND_TYPE_NORMAL 0 |
Standard commands.
Definition at line 35 of file commands.h.
#define COMMAND_TYPE_WIZARD 2 |
Wizard-only commands.
Definition at line 39 of file commands.h.
typedef void(* command_function) (object *op, const char *params) |
One command function.
op | the player executing the command |
params | the command parameters; empty string if no commands are given; leading and trailing spaces have been removed |
Definition at line 17 of file commands.h.
typedef void(* command_function_extra) (object *op, const char *params, const char *extra) |
One command function, with a custom parameter specified at registration time.
op | the player executing the command |
params | the command parameters; empty string if no commands are given; leading and trailing spaces have been removed |
extra | extra parameter as specified at registration, with NULL changed to empty string |
Definition at line 29 of file commands.h.
typedef uint64_t command_registration |
Identifier when registering a command.
Definition at line 32 of file commands.h.
enum shutdown_type |
Enumerator | |
---|---|
SHUTDOWN_NONE | |
SHUTDOWN_TIME | |
SHUTDOWN_IDLE |
Definition at line 41 of file commands.h.
struct shutdown_s shutdown_state |
Definition at line 44 of file c_wiz.cpp.
Referenced by check_shutdown(), command_shutdown(), and login_check_shutdown().