111 if (outputs->
buf == NULL)
113 if (outputs->
count > 1) {
153 if (i < NUM_OUTPUT_BUFS) {
200 uint8 subtype,
const char *message,
const char *oldmessage) {
208 draw_ext_info((flags&~NDI_ALL&~NDI_ALL_DMS), pri, tmppl->
ob, type, subtype, message, oldmessage);
233 buf = (
char *)oldmessage;
237 LOG(
llevError,
"info::draw_ext_info -> Out of memory!\n");
291 old_format = new_format;
293 va_start(ap, old_format);
296 va_start(ap, old_format);
300 draw_ext_info(flags, pri, pl, type, subtype, newbuf, oldbuf);
310 if (pl->
ob != NULL && pl->
ob->
map == map) {
322 if (pl->
ob != NULL && pl->
ob->
map == map && pl->
ob != op) {
330 void ext_info_map_except2(
int color,
const mapstruct *map,
const object *op1,
const object *op2,
int type,
int subtype,
const char *str1,
const char *str2) {
334 if (pl->
ob != NULL && pl->
ob->
map == map
335 && pl->
ob != op1 && pl->
ob != op2) {
348 strncpy(obuf,
"Range: nothing", len);
354 for (op = pl->
inv; op; op = op->
below)
361 snprintf(obuf, len,
"Range: %s (%s)", name, op->
race ? op->
race :
"nothing");
382 strncpy(name,
"none",
MAX_BUF);
383 snprintf(obuf, len,
"Range: %s", name);
394 strncpy(obuf,
"Range: nothing", len);
404 snprintf(obuf, len,
"Builder: %s", name);
408 strncpy(obuf,
"Range: illegal", len);
435 int x, y, dx, dy, mflags, l;
441 for (dx = -1; dx <= 1; dx++) {
442 for (dy = -1; dy <= 1; dy++) {
504 for (x = -strength; x < strength; x++) {
505 for (y = -strength; y < strength; y++) {
545 int xmin, xmax, ymin, ymax;
583 for (y = ymin; y <= ymax; y++) {
584 for (x = xmin; x <= xmax; x++) {
void SockList_AddPrintf(SockList *sl, const char *format,...)
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny)
void strip_media_tag(char *message)
void SockList_Init(SockList *sl)
void flush_output_element(const object *pl, Output_Buf *outputs)
void ext_info_map_except(int color, const mapstruct *map, const object *op, uint8 type, uint8 subtype, const char *str1, const char *str2)
void free_string(sstring str)
#define CLIENT_SUPPORT_READABLES(__sockPtr, __type)
void query_base_name(const object *op, int plural, char *buf, size_t size)
static void esrv_print_msg(socket_struct *ns, int color, const char *str)
void ext_info_map_except2(int color, const mapstruct *map, const object *op1, const object *op2, int type, int subtype, const char *str1, const char *str2)
Output_Buf outputs[NUM_OUTPUT_BUFS]
object * ranges[range_size]
static void print_message(int colr, const object *pl, const char *tmp)
void set_title(const object *pl, char *buf, size_t len)
struct obj * chosen_skill
void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage)
static void esrv_print_ext_msg(socket_struct *ns, int color, uint8 type, uint8 subtype, const char *message)
void SockList_Term(SockList *sl)
void ext_info_map(int color, const mapstruct *map, uint8 type, uint8 subtype, const char *str1, const char *str2)
void rangetostring(const object *pl, char *obuf, size_t len)
#define QUERY_FLAG(xyz, p)
void draw_magic_map(object *pl)
char * strdup_local(const char *str)
static void check_output_buffers(const object *pl, const char *buf)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format,...)
void SockList_AddChar(SockList *sl, char c)
static const flag_definition flags[]
int snprintf(char *dest, int max, const char *format,...)
#define GET_MAP_FACE_OBJ(M, X, Y, L)
static void magic_mapping_mark_recursive(object *pl, char *map_mark, int px, int py)
void magic_mapping_mark(object *pl, char *map_mark, int strength)
sstring add_string(const char *str)
EXTERN player * first_player
void LOG(LogLevel logLevel, const char *format,...)
void Send_With_Handling(socket_struct *ns, SockList *sl)