31 const struct ft_color color,
const char *format, ...)
35 const struct
ft_color color, const
char *format,
39 const
char *format, ...)
43 const
char *format, va_list vargs);
47 const
char *format, ...)
51 const
char *format, ...)
55 const
char *format, ...)
59 const
char *format, ...)
63 const
char *format, ...)
66 const struct
player *exclude, enum event_type
event,
67 const struct
ft_color color, const
char *format, ...)
70 const struct
player *exclude,
71 enum event_type
event,
73 const
char *format, ...)
88 const struct packet_chat_msg *packet);
90 const struct
player *pplayer);
void void void notify_player(const struct player *pplayer, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void event_cache_clear()
Remove all events from the cache.
void event_cache_init()
Initializes the event cache.
void void void void void void notify_research(const struct research *presearch, const struct player *exclude, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void send_pending_events(struct connection *pconn, bool include_public)
Send all available events.
void event_cache_add_for_players(const struct packet_chat_msg *packet, struct event_cache_players *players)
Add an event to the cache for selected players.
void void void void notify_embassies(const struct player *pplayer, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void event_cache_load(struct section_file *file, const char *section)
Load the event cache from a savefile.
void void vpackage_chat_msg(struct packet_chat_msg *packet, const struct connection *sender, const struct ft_color color, const char *format, va_list vargs)
Fill a packet_chat_msg structure for a chat message.
void event_cache_remove_old()
Remove the old events from the cache.
void void notify_conn_early(struct conn_list *dest, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void package_chat_msg(struct packet_chat_msg *packet, const struct connection *sender, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void event_cache_free()
Frees the event cache.
void event_cache_phases_invalidate()
Mark all existing phase values in event cache invalid.
void void void void void void void notify_research_embassies(const struct research *presearch, const struct player *exclude, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void void void void void notify_team(const struct player *pplayer, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void void vpackage_event(struct packet_chat_msg *packet, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format, va_list vargs)
Fill a packet_chat_msg structure for common server event.
void event_cache_add_for_global_observers(const struct packet_chat_msg *packet)
Add an event to the cache for all global observers.
void notify_conn(struct conn_list *dest, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void event_cache_add_for_player(const struct packet_chat_msg *packet, const struct player *pplayer)
Add an event to the cache for one player.
struct event_cache_players * event_cache_player_add(struct event_cache_players *players, const struct player *pplayer) fc__warn_unused_result
Select players for event_cache_add_for_players().
void event_cache_add_for_all(const struct packet_chat_msg *packet)
Add an event to the cache for all connections.
void package_event(struct packet_chat_msg *packet, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...) fc__attribute((__format__(__printf__
void event_cache_save(struct section_file *file, const char *section)
Save the event cache into the savegame.
int fc__attribute((nonnull(1, 3)))
#define fc__warn_unused_result