Atrinik Server  4.0
Data Structures | Macros | Typedefs
commands.h File Reference

Go to the source code of this file.

Data Structures

struct  command_struct
 
struct  permission_group_struct
 

Macros

#define COMMAND_PERMISSION   1
 
#define COMMAND_ALLOW_MARKUP   2
 
#define COMMAND(__name)   # __name, command_ ## __name
 
#define COMMAND_EXECUTE(__op, __command, __params)   command_ ## __command((__op), # __command, (__params))
 

Typedefs

typedef void(* command_func )(object *op, const char *command, char *params)
 
typedef struct command_struct command_struct
 
typedef struct
permission_group_struct 
permission_group_struct
 

Detailed Description

Commands header file.

Author
Alex Tokar

Definition in file commands.h.

Macro Definition Documentation

#define COMMAND (   __name)    # __name, command_ ## __name

Shortcut macro for commands_add().

Definition at line 118 of file commands.h.

#define COMMAND_EXECUTE (   __op,
  __command,
  __params 
)    command_ ## __command((__op), # __command, (__params))

Execute the specific command.

Definition at line 123 of file commands.h.

Typedef Documentation

typedef void(* command_func)(object *op, const char *command, char *params)

Format for a command handler function.

Parameters
opThe player.
commandThe command's name.
paramsOptional arguments for the command.

Definition at line 44 of file commands.h.

A single command.

A single permission group.