42 #define tolower(C) (((C) >= 'A' && (C) <= 'Z') ? (C)-'A'+'a' : (C))
58 static int compare_A(
const void *a,
const void *b) {
80 (
void *)commarray, commsize,
107 cp = command+strlen(command)-1;
108 while ((cp >= command) && (*cp ==
' ')) {
112 cp = strchr(command,
' ');
119 for (low = command; *low; low++)
134 "'%s' is not a valid command.",
135 "'%s' is not a valid command.",
153 LOG(
llevDebug,
"execute_newclient_command: Player issued command that takes more time than he has left.\n");
155 return csp->
func(pl, cp);
171 dir = params ? atoi(params) : 0;
172 if (dir < 0 || dir >= 9) {
174 "Can't run into a non adjacent square.", NULL);
209 dir = params ? atoi(params) : 0;
210 if (dir < 0 || dir >= 9) {
212 "Can't fire to a non adjacent square.", NULL);
int command_fire_stop(object *op, char *params)
command_array_struct Commands[]
int move_player(object *op, int dir)
const int WizCommandsSize
int command_run(object *op, char *params)
void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format,...)
const int CommunicationCommandSize
static int compare_A(const void *a, const void *b)
int command_run_stop(object *op, char *params)
int command_fire(object *op, char *params)
#define QUERY_FLAG(xyz, p)
command_array_struct WizCommands[]
int execute_newserver_command(object *pl, char *command)
command_array_struct CommunicationCommands[]
void LOG(LogLevel logLevel, const char *format,...)
command_array_struct * find_plugin_command(char *cmd, object *op)
static command_array_struct * find_command_element(const char *cmd, command_array_struct *commarray, int commsize)
#define MSG_TYPE_COMMAND_ERROR