|
Atrinik Server 2.5
|
Go to the source code of this file.
Functions | |
| int | color_notation_to_flag (const char *color) |
| void | new_draw_info (int flags, const char *color, object *pl, const char *buf) |
| void | new_draw_info_format (int flags, const char *color, object *pl, char *format,...) |
| static void | new_info_map_all_except (int flags, const char *color, mapstruct *map, object *op1, object *op, const char *str) |
| void | new_info_map (int flags, const char *color, mapstruct *map, int x, int y, int dist, const char *str) |
| void | new_info_map_except (int flags, const char *color, mapstruct *map, int x, int y, int dist, object *op1, object *op, const char *str) |
| void | send_socket_message (const char *color, socket_struct *ns, const char *buf) |
This file is the one and only DRAWINFO output module.
All player communication using drawinfo is handled here - except the few messages we send to the client using DRAWINFO before we had setup any player structure - for example when an outdated client logs in and we send "update your client" directly to the info windows.
But if the player is logged in, all DRAWINFO are generated here.
Definition in file info.c.
| void new_draw_info | ( | int | flags, |
| const char * | color, | ||
| object * | pl, | ||
| const char * | buf | ||
| ) |
| void new_draw_info_format | ( | int | flags, |
| const char * | color, | ||
| object * | pl, | ||
| char * | format, | ||
| ... | |||
| ) |
Similar to new_draw_info() but allows to use printf style formatting.
| flags | Flags. |
| pl | Player. |
| format | Format. |
| void new_info_map | ( | int | flags, |
| const char * | color, | ||
| mapstruct * | map, | ||
| int | x, | ||
| int | y, | ||
| int | dist, | ||
| const char * | str | ||
| ) |
| void new_info_map_except | ( | int | flags, |
| const char * | color, | ||
| mapstruct * | map, | ||
| int | x, | ||
| int | y, | ||
| int | dist, | ||
| object * | op1, | ||
| object * | op, | ||
| const char * | str | ||
| ) |
Writes to everyone on the map *except* op and op1. This is useful for emotions.
Tiled maps will be considered.
| color | Flags. |
| map | Map to write on. |
| x | X position. |
| y | Y position. |
| dist | Distance. |
| op1 | Will not write to this object. |
| op | Will not write to this object. |
| str | What to write. |
| void send_socket_message | ( | const char * | color, |
| socket_struct * | ns, | ||
| const char * | buf | ||
| ) |
Send a socket message, similar to new_draw_info() but the message will be sent using Write_String_To_Socket() instead.
Used for messages that are sent to player before they have finished logging in.
| flags | Flags to send. |
| ns | Socket to send to. |
| buf | Message to send. |
1.7.4