29 #define tolower(C) (((C) >= 'A' && (C) <= 'Z') ? (C)-'A'+'a' : (C)) 45 static int compare_A(
const void *a,
const void *b) {
67 (
void *)commarray, commsize,
92 cp = command+strlen(command)-1;
93 while ((cp >= command) && (*cp ==
' ')) {
97 cp = strchr(command,
' ');
103 cp = strchr(command,
'\0');
106 for (low = command; *low; low++)
121 "'%s' is not a valid command.",
139 LOG(
llevDebug,
"execute_newclient_command: Player issued command that takes more time than he has left.\n");
156 if (dir < 0 || dir >= 9) {
158 "Can't run into a non adjacent square.");
191 if (dir < 0 || dir >= 9) {
193 "Can't fire to a non adjacent square.");
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
command_array_struct * find_plugin_command(const char *cmd, command_array_struct *command)
command_array_struct Commands[]
int move_player(object *op, int dir)
const int WizCommandsSize
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
const int CommunicationCommandSize
#define MSG_TYPE_COMMAND_ERROR
static int compare_A(const void *a, const void *b)
void command_run(object *op, const char *params)
void command_run_stop(object *op, const char *params)
#define QUERY_FLAG(xyz, p)
void execute_newserver_command(object *pl, char *command)
command_array_struct WizCommands[]
void command_fire(object *op, const char *params)
command_array_struct CommunicationCommands[]
void LOG(LogLevel logLevel, const char *format,...)
static command_array_struct * find_command_element(const char *cmd, command_array_struct *commarray, int commsize)
void command_fire_stop(object *op, const char *params)