Go to the documentation of this file.
99 uint8_t subtype,
const char *
message) {
163 va_start(ap, format);
169 va_start(ap, format);
175 else if (*
buf ==
'\0')
250 &&
pl->
ob != op1 &&
pl->
ob != op2) {
269 strncpy(obuf,
"Range: nothing", len);
282 snprintf(obuf, len,
"Range: %s (%s)",
name,
op->race ?
op->race :
"nothing");
288 if (
pl->casting_time == 0)
289 snprintf(obuf, len,
"Range: Holding spell (%s)",
pl->spell->name);
291 snprintf(obuf, len,
"Range: Casting spell (%s)",
pl->spell->name);
302 snprintf(obuf, len,
"Range: %s",
name);
313 strncpy(obuf,
"Range: nothing", len);
318 snprintf(obuf, len,
"Skill: %s",
pl->chosen_skill != NULL ?
pl->chosen_skill->name :
"none");
323 snprintf(obuf, len,
"Builder: %s",
name);
327 strncpy(obuf,
"Range: illegal", len);
337 snprintf(
buf, len,
"Player: %s ",
pl->name);
338 p = strchr(
buf,
'\0');
360 int x,
y, dx, dy, mflags,
l;
366 for (dx = -1; dx <= 1; dx++) {
367 for (dy = -1; dy <= 1; dy++) {
434 for (
x = -strength;
x < strength;
x++) {
435 for (
y = -strength;
y < strength;
y++) {
477 int xmin, xmax, ymin, ymax;
512 for (
y = ymin;
y <= ymax;
y++) {
513 for (
x = xmin;
x <= xmax;
x++) {
void ext_info_map_except(int color, const mapstruct *map, const object *op, uint8_t type, uint8_t subtype, const char *str1)
#define QUERY_FLAG(xyz, p)
void set_title(const object *pl, char *buf, size_t len)
static const flag_definition flags[]
void rangetostring(const object *pl, char *obuf, size_t len)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
void SockList_AddChar(SockList *sl, unsigned char c)
#define GET_MAP_FACE_OBJ(M, X, Y, L)
EXTERN player * first_player
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
void SockList_Init(SockList *sl)
void SockList_Term(SockList *sl)
void ext_info_map_except2(int color, const mapstruct *map, const object *op1, const object *op2, int type, int subtype, const char *str1)
void LOG(LogLevel logLevel, const char *format,...)
void query_base_name(const object *op, int plural, char *buf, size_t size)
void print_ext_msg(socket_struct *ns, int color, uint8_t type, uint8_t subtype, const char *message)
void draw_magic_map(object *pl)
object * ranges[range_size]
static void do_print_ext(SockList *sl, int color, uint8_t type, uint8_t subtype, const char *message)
const char * i18n(const object *who, const char *code)
SockList * player_get_delayed_buffer(player *pl)
void ext_info_map(int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1)
void magic_mapping_mark(object *pl, char *map_mark, int strength)
static void magic_mapping_mark_recursive(object *pl, char *map_mark, int px, int py)
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
void player_get_title(const struct pl *pl, char *buf, size_t bufsize)
void Send_With_Handling(socket_struct *ns, SockList *sl)
void SockList_AddPrintf(SockList *sl, const char *format,...)