49#define M_PI 3.14159265358979323846
52#define M_PI_2 1.57079632679489661923
111 pplayer = pplayer->
prev;
132 pplayer = pplayer->
prev;
153 pplayer = pplayer->
prev;
174 pplayer = pplayer->
prev;
195 pplayer = pplayer->
prev;
454 if (!pplayer->is_alive) {
467 if (pplayer->is_alive) {
471 buf->data.player = pplayer;
486 r -= ((
MAX(
buf->size.w,
buf->size.h) * 2));
488 a = (2.0 *
M_PI) /
n;
534 buf->size.y =
n + (h -
buf->size.h) / 2;
646 "with your current contact state - "
647 "Try right mouse button for intelligence."));
669 char cbuf[128], *state;
717 if (
is_ai(pplayer)) {
720 if (pplayer->is_connected) {
721 if (pplayer->phase_done) {
727 state =
_(
"disconnected");
735 ds->turns_left,
PL_(
"turn",
"turns",
ds->turns_left));
784 buf->data.player = pplayer;
790 area.w =
MAX(w,
buf->size.w);
791 area.h +=
buf->size.h;
826 (pwindow->
size.w - pwindow->
area.w) + area.w,
827 (pwindow->
size.h + pwindow->
area.h) + area.h);
829 area = pwindow->
area;
847 buf->
size.x = area.x + area.w -
buf->size.w - 1;
858 area.x + area.w, area.y,
SDL_Surface * zoomSurface(SDL_Surface *src, double zoomx, double zoomy, int smooth)
Zoom a surface by independent horizontal and vertical factors with optional smoothing.
void astr_free(struct astring *astr)
void astr_add_line(struct astring *astr, const char *format,...)
static const char * astr_str(const struct astring *astr) fc__attribute((nonnull(1)))
bool can_meet_with_player(const struct player *pplayer)
bool can_intel_with_player(const struct player *pplayer)
#define PL_(String1, String2, n)
static void popup_diplomacy_dialog(struct treaty *ptreaty, struct player *they, struct player *initiator)
void popup_intel_dialog(struct player *p)
void popdown_players_dialog(void)
void real_players_dialog_update(void *unused)
void popup_players_dialog(bool raise)
#define set_output_window_text(_pstr_)
SDL_Color * get_theme_color(enum theme_color themecolor)
int main_window_width(void)
void create_line(SDL_Surface *dest, Sint16 x0, Sint16 y0, Sint16 x1, Sint16 y1, SDL_Color *pcolor)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
int main_window_height(void)
#define CF_DRAW_PLAYERS_ALLIANCE_STATUS
#define CF_DRAW_PLAYERS_CEASEFIRE_STATUS
#define CF_DRAW_PLAYERS_PEACE_STATUS
#define CF_DRAW_PLAYERS_NEUTRAL_STATUS
#define CF_DRAW_PLAYERS_WAR_STATUS
#define PRESSED_EVENT(event)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
static SDL_Surface * get_nation_flag_surface(const struct nation_type *pnation)
static struct advanced_dialog * short_players_dlg
void popdown_players_nations_dialog(void)
static int toggle_draw_alliance_status_callback(struct widget *pwidget)
void popup_players_nations_dialog(void)
static int exit_players_nations_dlg_callback(struct widget *pwidget)
static int player_callback(struct widget *pwidget)
static int toggle_draw_neutral_status_callback(struct widget *pwidget)
static int players_window_dlg_callback(struct widget *pwindow)
static int toggle_draw_war_status_callback(struct widget *pwidget)
static int toggle_draw_peace_status_callback(struct widget *pwidget)
static int exit_players_dlg_callback(struct widget *pwidget)
static int player_nation_callback(struct widget *pwidget)
static int players_nations_window_dlg_callback(struct widget *pwindow)
static int toggle_draw_ceasefire_status_callback(struct widget *pwidget)
static bool have_diplomat_info_about(struct player *pplayer)
static struct small_dialog * pplayers_dlg
@ COLOR_THEME_PLRDLG_CEASEFIRE
@ COLOR_THEME_PLRDLG_ALLIANCE
@ COLOR_THEME_PLRDLG_PEACE
@ COLOR_THEME_PLRDLG_TEXT
@ COLOR_THEME_PLRDLG_NO_CONTACT
@ COLOR_THEME_PLRDLG_WAR_RESTRICTED
@ COLOR_THEME_PLRDLG_ARMISTICE
#define fc_calloc(n, esz)
const char * nation_adjective_for_player(const struct player *pplayer)
struct nation_type * nation_of_player(const struct player *pplayer)
bool team_has_embassy(const struct team *pteam, const struct player *tgt_player)
struct player_diplstate * player_diplstate_get(const struct player *plr1, const struct player *plr2)
#define players_iterate_end
#define players_iterate(_pplayer)
static bool is_barbarian(const struct player *pplayer)
struct player_dlg_column player_dlg_columns[]
const int num_player_dlg_columns
void players_dialog_update(void)
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
struct widget * begin_widget_list
struct widget * end_widget_list
int fc_snprintf(char *str, size_t n, const char *format,...)