|
Crossfire Server, Branch 1.12
R12190
|
Contains the definition for all in-game commands a player can issue. More...

Go to the source code of this file.
Functions | |
| static int | compare_A (const void *a, const void *b) |
| Comparison function for 2 command_array_struct. | |
| void | init_commands (void) |
| Sorts the command arrays for easy search through bsearch(). | |
Variables | |
| command_array_struct | Commands [] |
| Normal game commands. | |
| const int | CommandsSize = sizeof(Commands)/sizeof(command_array_struct) |
| Length of Commands array. | |
| command_array_struct | CommunicationCommands [] |
| Chat/shout related commands. | |
| const int | CommunicationCommandSize = sizeof(CommunicationCommands)/sizeof(command_array_struct) |
| Length of the CommunicationCommands array. | |
| command_array_struct | WizCommands [] |
| Wizard commands. | |
| const int | WizCommandsSize = sizeof(WizCommands)/sizeof(command_array_struct) |
| Length of WizCommands array. | |
Contains the definition for all in-game commands a player can issue.
Definition in file commands.c.
| static int compare_A | ( | const void * | a, |
| const void * | b | ||
| ) | [static] |
Comparison function for 2 command_array_struct.
| a | |
| b | commands to compare. |
| -1 | a is less than b. |
| 0 | a equals b. |
| 1 | a is greater than b. |
Definition at line 286 of file commands.c.
Referenced by init_commands().

| void init_commands | ( | void | ) |
Sorts the command arrays for easy search through bsearch().
Definition at line 293 of file commands.c.
References CommandsSize, and compare_A().
Referenced by init().


Normal game commands.
Definition at line 49 of file commands.c.
Referenced by execute_newserver_command(), and show_commands().
| const int CommandsSize = sizeof(Commands)/sizeof(command_array_struct) |
Length of Commands array.
Definition at line 137 of file commands.c.
Referenced by execute_newserver_command(), init_commands(), and show_commands().
Chat/shout related commands.
Definition at line 140 of file commands.c.
Referenced by execute_newserver_command(), and show_commands().
| const int CommunicationCommandSize = sizeof(CommunicationCommands)/sizeof(command_array_struct) |
Length of the CommunicationCommands array.
Definition at line 208 of file commands.c.
Referenced by execute_newserver_command(), and show_commands().
Wizard commands.
Definition at line 211 of file commands.c.
Referenced by execute_newserver_command(), and show_commands().
| const int WizCommandsSize = sizeof(WizCommands)/sizeof(command_array_struct) |
Length of WizCommands array.
Definition at line 272 of file commands.c.
Referenced by execute_newserver_command(), and show_commands().
1.7.6.1