2 "$Id: player.c 9201 2008-06-01 17:32:45Z anmaster $";
48 const char *
const directions[9] = {
"stay",
"north",
"northeast",
"east",
"southeast",
49 "south",
"southwest",
"west",
"northwest"};
57 Spell *spell, *spnext;
156 snprintf(buf,
sizeof(buf),
"fire %d", dir);
176 snprintf(buf,
sizeof(buf),
"run %d", dir);
196 static char last_command[
MAX_BUF]=
"";
200 LOG(
LOG_ERROR,
"common::send_command",
"Wont send command '%s' - since in reply mode!",
210 if (commdiff<0) commdiff +=256;
219 fprintf(stderr,
"Wont send command %s - window oversized %d %d\n",
228 if (!must_send) strcpy(last_command, command);
249 LOG(
LOG_ERROR,
"common::CompleteCmd",
"Invalid length %d - ignoring", len);
void SockList_Init(SockList *sl, uint8 *buf)
void move_player(int dir)
void command_take(const char *command, const char *cpnext)
void clear_fire_run(void)
const char *const directions[9]
short GetShort_String(const unsigned char *data)
int SockList_Send(SockList *sl, int fd)
void script_sync(int commdiff)
void SockList_AddInt(SockList *sl, uint32 data)
void LOG(LogLevel level, const char *origin, const char *format,...)
void client_send_apply(int tag)
void look_at(int x, int y)
int cs_print_string(int fd, const char *str,...)
int send_command(const char *command, int repeat, int must_send)
sint16 use_config[CONFIG_NUMS]
void client_send_move(int loc, int tag, int nrof)
void SockList_AddString(SockList *sl, const char *str)
void new_player(long tag, char *name, long weight, long face)
struct Spell_struct * next
void SockList_AddShort(SockList *sl, uint16 data)
void client_send_examine(int tag)
const char *const rcsid_common_player_c
void draw_info(const char *str, int color)
void CompleteCmd(unsigned char *data, int len)
int GetInt_String(const unsigned char *data)
void script_monitor(const char *command, int repeat, int must_send)