Go to the documentation of this file.
99 uint8_t subtype,
const char *
message) {
120 if (pri >=
pl->contr->listening)
163 va_start(ap, format);
169 va_start(ap, format);
175 else if (*
buf ==
'\0')
199 if (
pl->ob != NULL &&
pl->ob->map ==
map) {
223 if (
pl->ob != NULL &&
pl->ob->map ==
map &&
pl->ob !=
op) {
249 if (
pl->ob != NULL &&
pl->ob->map ==
map
250 &&
pl->ob != op1 &&
pl->ob != op2) {
267 switch (
pl->contr->shoottype) {
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);
294 snprintf(obuf, len,
"Range: spell (%s)",
pl->contr->ranges[
range_magic]->name);
302 snprintf(obuf, len,
"Range: %s",
name);
310 snprintf(obuf, len,
"Range: golem (%s)",
pl->contr->ranges[
range_golem]->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 LOG(LogLevel logLevel, const char *format,...)
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)
static const flag_definition flags[]
static void magic_mapping_mark_recursive(object *pl, char *map_mark, int px, int py)
void print_ext_msg(socket_struct *ns, int color, uint8_t type, uint8_t subtype, const char *message)
void magic_mapping_mark(object *pl, char *map_mark, int strength)
void SockList_AddChar(SockList *sl, unsigned char c)
#define GET_MAP_FACE_OBJ(M, X, Y, L)
static void do_print_ext(SockList *sl, int color, uint8_t type, uint8_t subtype, const char *message)
void SockList_Init(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 SockList_Term(SockList *sl)
void set_title(const object *pl, char *buf, size_t len)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
void rangetostring(const object *pl, char *obuf, size_t len)
void draw_magic_map(object *pl)
SockList * player_get_delayed_buffer(player *pl)
void query_base_name(const object *op, int plural, char *buf, size_t size)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
void Send_With_Handling(socket_struct *ns, SockList *sl)
void SockList_AddPrintf(SockList *sl, const char *format,...)
const char * i18n(const object *who, const char *code)
void ext_info_map(int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1)
void player_get_title(const player *pl, char *buf, size_t bufsize)