Freeciv-3.3
Loading...
Searching...
No Matches
plrdlg.c
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18#include <stdio.h>
19#include <stdlib.h>
20#include <string.h>
21
22#include <gtk/gtk.h>
23#include <gdk/gdkkeysyms.h>
24
25/* utility */
26#include "astring.h"
27#include "fcintl.h"
28#include "support.h"
29
30/* common */
31#include "diptreaty.h"
32#include "packets.h"
33#include "nation.h"
34#include "player.h"
35
36/* client */
37#include "client_main.h"
38#include "climisc.h"
39#include "connectdlg_common.h"
40#include "tilespec.h"
41#include "colors.h"
42#include "graphics.h"
43#include "options.h"
44#include "text.h"
45
46/* client/gui-gtk-3.22 */
47#include "chatline.h"
48#include "dialogs.h"
49#include "gui_main.h"
50#include "gui_stuff.h"
51#include "inteldlg.h"
52#include "spaceshipdlg.h"
53#include "colors.h"
54#include "graphics.h"
55
56#include "plrdlg.h"
57
66
68#define PLR_DLG_COL_STYLE (0 + num_player_dlg_columns)
69#define PLR_DLG_COL_WEIGHT (1 + num_player_dlg_columns)
70#define PLR_DLG_COL_ID (2 + num_player_dlg_columns)
71#define PLR_DLG_COL_TOOLTIP (3 + num_player_dlg_columns)
72
73#define PLR_DLG_COL_TOTAL (PLR_DLG_COL_TOOLTIP + 1)
74
75static void create_players_dialog(void);
84
85
86static void update_views(void);
87
88/**********************************************************************/
101
102/**********************************************************************/
111
112/**********************************************************************/
118{
119 int width, height;
120 GdkPixbuf *tmp;
121 cairo_surface_t *surface;
122 struct color *color;
123 cairo_t *cr;
124
125 if (!player_has_color(plr)) {
126 return NULL;
127 }
128
131
132 cr = cairo_create(surface);
133
136 cairo_rectangle(cr, 0, 0, width, height);
137 cairo_fill(cr);
138
141 cairo_rectangle(cr, 1, 1, width - 2, height - 2);
142 cairo_fill(cr);
143
144 cairo_destroy(cr);
145 tmp = surface_get_pixbuf(surface, width, height);
146 cairo_surface_destroy(surface);
147
148 return tmp;
149}
150
151/**********************************************************************/
154static void update_players_menu(void)
155{
156 GtkTreeModel *model;
157 GtkTreeIter it;
158
160 struct player *plr;
161 gint plrno;
162
163 gtk_tree_model_get(model, &it, PLR_DLG_COL_ID, &plrno, -1);
164 plr = player_by_number(plrno);
165
166 if (plr->spaceship.state != SSHIP_NONE) {
168 } else {
170 }
171
172 if (NULL != client.conn.playing) {
173 /* We keep button sensitive in case of DIPL_SENATE_BLOCKING, so that player
174 * can request server side to check requirements of those effects with omniscience */
179 != DIPL_ERROR);
180 } else {
182 }
183
188
191 return;
192 }
193
196}
197
198/**********************************************************************/
201static void selection_callback(GtkTreeSelection *selection, gpointer data)
202{
204}
205
206/**********************************************************************/
210{
211 if (ev->type == GDK_2BUTTON_PRESS) {
212 GtkTreePath *path;
213
215 if (path) {
217 GtkTreeIter it;
218 gint id;
219 struct player *plr;
220
221 gtk_tree_model_get_iter(model, &it, path);
222 gtk_tree_path_free(path);
223
224 gtk_tree_model_get(model, &it, PLR_DLG_COL_ID, &id, -1);
225 plr = player_by_number(id);
226
227 if (ev->button == 1) {
228 if (can_intel_with_player(plr)) {
230 }
231 } else if (can_meet_with_player(plr)) {
233 }
234 }
235 }
236 return FALSE;
237}
238
239/**********************************************************************/
243 GtkTreeIter *a, GtkTreeIter *b, gpointer data)
244{
245 GValue value = { 0, };
246 struct player *player1;
247 struct player *player2;
248 gint n;
249
250 n = GPOINTER_TO_INT(data);
251
252 gtk_tree_model_get_value(model, a, PLR_DLG_COL_ID, &value);
254 g_value_unset(&value);
255
256 gtk_tree_model_get_value(model, b, PLR_DLG_COL_ID, &value);
258 g_value_unset(&value);
259
261}
262
263/**********************************************************************/
267{
268 GtkListStore *store;
270 int i;
271
272 for (i = 0; i < num_player_dlg_columns; i++) {
273 switch (player_dlg_columns[i].type) {
274 case COL_FLAG:
276 break;
277 case COL_COLOR:
279 break;
280 case COL_BOOLEAN:
282 break;
283 case COL_TEXT:
284 case COL_RIGHT_TEXT:
286 break;
287 }
288 }
289
290 /* Special (invisible rows) - Text style, weight and player id */
291 model_types[i++] = G_TYPE_INT; /* PLR_DLG_COL_STYLE. */
292 model_types[i++] = G_TYPE_INT; /* PLR_DLG_COL_WEIGHT. */
293 model_types[i++] = G_TYPE_INT; /* PLR_DLG_COL_ID. */
294 model_types[i++] = G_TYPE_STRING; /* PLR_DLG_COL_TOOLTIP */
295
297
298 /* Set sort order */
299 for (i = 0; i < num_player_dlg_columns; i++) {
300 if (player_dlg_columns[i].sort_func != NULL) {
303 NULL);
304 }
305 }
306
307 return store;
308}
309
310/**********************************************************************/
320
321/**********************************************************************/
330
331/**********************************************************************/
361
362/**********************************************************************/
391
392/**********************************************************************/
396{
397 int i;
398 GtkWidget *menu = gtk_menu_new();
400
401 /* Index starting at one (1) here to force playername to always be shown */
402 for (i = 1; i < num_player_dlg_columns; i++) {
403 struct player_dlg_column *pcol;
404
410 }
411
414
415 item = gtk_check_menu_item_new_with_label(Q_("?show:Dead Players"));
420
421 return menu;
422}
423
424/**********************************************************************/
428{
429 int i;
430 GtkWidget *sep, *sw;
431 GtkWidget *menubar, *menu, *item, *vbox;
432 enum ai_level level;
433
435 TRUE);
436 /* TRANS: Nations report title */
438
439 gui_dialog_add_button(players_dialog_shell, "window-close", _("_Close"),
441
443
445
453 gtk_widget_set_name(players_list, "small_font");
454
458 g_signal_connect(players_list, "button_press_event",
460
461 for (i = 0; i < num_player_dlg_columns; i++) {
462 struct player_dlg_column *pcol;
463 GtkCellRenderer *renderer;
465
467 col = NULL;
468
469 switch (pcol->type) {
470 case COL_FLAG:
471 renderer = gtk_cell_renderer_pixbuf_new();
472
474 renderer, "pixbuf", i, NULL);
475 break;
476 case COL_BOOLEAN:
477 renderer = gtk_cell_renderer_toggle_new();
478
480 "active", i, NULL);
481 break;
482 case COL_COLOR:
483 renderer = gtk_cell_renderer_pixbuf_new();
484
486 "pixbuf", i, NULL);
487 break;
488 case COL_TEXT:
489 renderer = gtk_cell_renderer_text_new();
490 g_object_set(renderer, "style-set", TRUE, "weight-set", TRUE, NULL);
491
493 "text", i,
494 "style", PLR_DLG_COL_STYLE,
495 "weight", PLR_DLG_COL_WEIGHT,
496 NULL);
498 break;
499 case COL_RIGHT_TEXT:
500 renderer = gtk_cell_renderer_text_new();
501 g_object_set(renderer, "style-set", TRUE, "weight-set", TRUE, NULL);
502
504 "text", i,
505 "style", PLR_DLG_COL_STYLE,
506 "weight", PLR_DLG_COL_WEIGHT,
507 NULL);
509 g_object_set(renderer, "xalign", 1.0, NULL);
511 break;
512 }
513
514 if (col) {
516 }
517 }
518
521
528
530
531 vbox = gtk_grid_new();
534
537
540
541
543
544 item = gtk_menu_item_new_with_mnemonic(_("Di_plomacy"));
545 menu = create_diplomacy_menu();
548
549 item = gtk_menu_item_new_with_mnemonic(_("_Intelligence"));
553
555 menu = create_show_menu();
558
561
562 menu = gtk_menu_new();
564
565 item = gtk_menu_item_new_with_mnemonic(_("_Toggle AI Mode"));
566 g_signal_connect(item, "activate",
569
572
573 for (level = 0; level < AI_LEVEL_COUNT; level++) {
576
578 g_signal_connect(item, "activate",
582 }
583 }
585
587
589
592
594}
595
596
597/**************************************************************************
598...
599**************************************************************************/
600#define MIN_DIMENSION 5
601
602/**********************************************************************/
607GdkPixbuf *get_flag(const struct nation_type *nation)
608{
609 int x0, y0, x1, y1, w, h;
610 GdkPixbuf *im;
611 struct sprite *flag;
612
613 flag = get_nation_flag_sprite(tileset, nation);
614
615 /* calculate the bounding box ... */
616 sprite_get_bounding_box(flag, &x0, &y0, &x1, &y1);
617
618 fc_assert_ret_val(x0 != -1, NULL);
619 fc_assert_ret_val(y0 != -1, NULL);
620 fc_assert_ret_val(x1 != -1, NULL);
621 fc_assert_ret_val(y1 != -1, NULL);
622
623 w = (x1 - x0) + 1;
624 h = (y1 - y0) + 1;
625
626 /* if the flag is smaller then 5 x 5, something is wrong */
628
629 /* croping */
631 if (im != NULL) {
633
635 im, 0, 0);
637 }
638
639 /* and finally store the scaled flag pixbuf in the static flags array */
640 return im;
641}
642
643
644/**********************************************************************/
648static void fill_row(GtkListStore *store, GtkTreeIter *it,
649 const struct player *pplayer)
650{
651 struct player_dlg_column* pcol;
653 int style = PANGO_STYLE_NORMAL, weight = PANGO_WEIGHT_NORMAL;
654 int k;
655
656 for (k = 0; k < num_player_dlg_columns; k++) {
658 switch (pcol->type) {
659 case COL_TEXT:
660 case COL_RIGHT_TEXT:
661 gtk_list_store_set(store, it, k, pcol->func(pplayer), -1);
662 break;
663 case COL_FLAG:
664 pixbuf = get_flag(nation_of_player(pplayer));
665 if (pixbuf != NULL) {
666 gtk_list_store_set(store, it, k, pixbuf, -1);
668 }
669 break;
670 case COL_COLOR:
671 pixbuf = create_player_icon(pplayer);
672 if (pixbuf != NULL) {
673 gtk_list_store_set(store, it, k, pixbuf, -1);
675 }
676 break;
677 case COL_BOOLEAN:
678 gtk_list_store_set(store, it, k, pcol->bool_func(pplayer), -1);
679 break;
680 }
681 }
682
684 score_tooltip(pplayer, pplayer->score.game), -1);
685
686 /* Now add some eye candy ... */
687 if (client_has_player()) {
688 switch (player_diplstate_get(client_player(), pplayer)->type) {
689 case DS_WAR:
690 weight = PANGO_WEIGHT_NORMAL;
691 style = PANGO_STYLE_ITALIC;
692 break;
693 case DS_ALLIANCE:
694 case DS_TEAM:
695 weight = PANGO_WEIGHT_BOLD;
696 style = PANGO_STYLE_NORMAL;
697 break;
698 case DS_ARMISTICE:
699 case DS_CEASEFIRE:
700 case DS_PEACE:
701 case DS_NO_CONTACT:
702 weight = PANGO_WEIGHT_NORMAL;
703 style = PANGO_STYLE_NORMAL;
704 break;
705 case DS_LAST:
706 break;
707 }
708 }
709
710 gtk_list_store_set(store, it,
711 PLR_DLG_COL_STYLE, style,
712 PLR_DLG_COL_WEIGHT, weight,
714 -1);
715}
716
717/**********************************************************************/
720static bool player_should_be_shown(const struct player *pplayer)
721{
722 return NULL != pplayer && (gui_options.player_dlg_show_dead_players
723 || pplayer->is_alive)
724 && (!is_barbarian(pplayer));
725}
726
727/**********************************************************************/
731{
732 GtkTreeModel *model;
734 int selected;
735
736 if (NULL == players_dialog_shell) {
737 return;
738 }
739
740 /* Save the selection. */
742 gtk_tree_model_get(model, &iter, PLR_DLG_COL_ID, &selected, -1);
743 } else {
744 selected = -1;
745 }
746
748 players_iterate(pplayer) {
749 if (!player_should_be_shown(pplayer)) {
750 continue;
751 }
754 if (player_number(pplayer) == selected) {
755 /* Restore the selection. */
757 }
759
760 update_views();
761}
762
763/**********************************************************************/
780
781/**********************************************************************/
804
805/**********************************************************************/
809{
810 GtkTreeModel *model;
811 GtkTreeIter it;
812
815 gint plrno;
816 struct player *aplayer;
818
819 gtk_tree_model_get(model, &it, PLR_DLG_COL_ID, &plrno, -1);
822
825
826 /* TRANS: %s is a diplomatic state: "Cancel Cease-fire" */
828
829 if (newstate == DS_WAR) {
830 astr_set(&question, _("Really declare war on the %s?"),
832 } else {
833 /* TRANS: "Cancel Belgian Alliance? ... will be Armistice." */
834 astr_set(&question, _("Cancel %s %s? New diplomatic state will be %s."),
838 }
839
840 /* can be any pact clause */
843 }
844}
845
846/**********************************************************************/
850{
851 GtkTreeModel *model;
852 GtkTreeIter it;
853
856 gint plrno;
857 struct player *aplayer;
858
859 gtk_tree_model_get(model, &it, PLR_DLG_COL_ID, &plrno, -1);
862
863 /* TRANS: "...from the Belgians?" */
864 astr_set(&question, _("Withdraw shared vision from the %s?"),
866
868 fc_strdup(_("Withdraw Shared Vision")),
870 }
871}
872
873/**********************************************************************/
891
892/**********************************************************************/
908
909/**********************************************************************/
924
925/**********************************************************************/
929{
930 GtkTreeModel *model;
931 GtkTreeIter it;
932
934 gint plrno;
935
936 gtk_tree_model_get(model, &it, PLR_DLG_COL_ID, &plrno, -1);
937
938 send_chat_printf("/aitoggle \"%s\"", player_name(player_by_number(plrno)));
939 }
940}
941
942/**********************************************************************/
946{
947 GtkTreeModel *model;
948 GtkTreeIter it;
949
951 gint plrno;
952
953 gtk_tree_model_get(model, &it, PLR_DLG_COL_ID, &plrno, -1);
954
955 send_chat_printf("/%s %s",
958 }
959}
960
961/**********************************************************************/
void astr_set(struct astring *astr, const char *format,...)
Definition astring.c:251
char * astr_to_str(struct astring *astr)
Definition astring.c:163
#define n
Definition astring.c:77
#define ASTRING_INIT
Definition astring.h:44
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
int send_chat_printf(const char *format,...)
bool can_meet_with_player(const struct player *pplayer)
bool can_intel_with_player(const struct player *pplayer)
struct civclient client
bool can_client_issue_orders(void)
bool client_has_player(void)
#define client_player()
struct color * get_player_color(const struct tileset *t, const struct player *pplayer)
bool player_has_color(const struct player *pplayer)
struct color * get_color(const struct tileset *t, enum color_std stdcolor)
char * incite_cost
Definition comments.c:76
int int id
Definition editgui_g.h:28
#define Q_(String)
Definition fcintl.h:70
#define _(String)
Definition fcintl.h:67
GtkWidget * top_notebook
Definition gui_main.c:130
GtkWidget * toplevel
Definition gui_main.c:126
void gtk_tree_view_focus(GtkTreeView *view)
Definition gui_stuff.c:236
void gui_dialog_destroy(struct gui_dialog *dlg)
Definition gui_stuff.c:954
void gui_dialog_present(struct gui_dialog *dlg)
Definition gui_stuff.c:835
void gui_dialog_set_default_response(struct gui_dialog *dlg, int response)
Definition gui_stuff.c:734
void gui_dialog_raise(struct gui_dialog *dlg)
Definition gui_stuff.c:865
void gui_dialog_new(struct gui_dialog **pdlg, GtkNotebook *notebook, gpointer user_data, bool check_top)
Definition gui_stuff.c:517
GtkWidget * gui_dialog_add_widget(struct gui_dialog *dlg, GtkWidget *widget)
Definition gui_stuff.c:722
void gui_dialog_show_all(struct gui_dialog *dlg)
Definition gui_stuff.c:795
void gui_dialog_set_title(struct gui_dialog *dlg, const char *title)
Definition gui_stuff.c:935
void gui_dialog_set_default_size(struct gui_dialog *dlg, int width, int height)
Definition gui_stuff.c:919
GtkWidget * gtk_aux_menu_bar_new(void)
Definition gui_stuff.c:255
GtkWidget * gui_dialog_add_button(struct gui_dialog *dlg, const char *icon_name, const char *text, int response)
Definition gui_stuff.c:706
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
Definition gui_stuff.c:287
void popup_intel_dialog(struct player *p)
Definition inteldlg.c:167
void popup_intel_wonder_dialog(struct player *p)
Definition inteldlg.c:183
static struct gui_dialog * shell
Definition messagedlg.c:39
static GtkWidget * players_int_command
Definition plrdlg.c:61
static void players_war_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:808
void popdown_players_dialog(void)
Definition plrdlg.c:105
static void fill_row(GtkListStore *store, GtkTreeIter *it, const struct player *pplayer)
Definition plrdlg.c:648
static GtkTreeSelection * players_selection
Definition plrdlg.c:60
static void update_views(void)
Definition plrdlg.c:964
static GtkWidget * players_vision_command
Definition plrdlg.c:64
static GtkWidget * players_list
Definition plrdlg.c:59
static GtkWidget * players_sship_command
Definition plrdlg.c:65
struct gui_dialog * players_dialog_shell
Definition plrdlg.c:58
static void players_ai_toggle_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:928
static void players_sship_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:912
#define PLR_DLG_COL_ID
Definition plrdlg.c:70
#define PLR_DLG_COL_WEIGHT
Definition plrdlg.c:69
#define PLR_DLG_COL_STYLE
Definition plrdlg.c:68
void real_players_dialog_update(void *unused)
Definition plrdlg.c:730
static GtkWidget * create_diplomacy_menu(void)
Definition plrdlg.c:335
static bool player_should_be_shown(const struct player *pplayer)
Definition plrdlg.c:720
#define PLR_DLG_COL_TOTAL
Definition plrdlg.c:73
GdkPixbuf * create_player_icon(const struct player *plr)
Definition plrdlg.c:117
static GtkWidget * create_intelligence_menu(void)
Definition plrdlg.c:366
static gboolean button_press_callback(GtkTreeView *view, GdkEventButton *ev)
Definition plrdlg.c:209
void popup_players_dialog(bool raise)
Definition plrdlg.c:91
static GtkListStore * players_dialog_store
Definition plrdlg.c:67
static void players_intel_wonder_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:895
static void toggle_dead_players(GtkCheckMenuItem *item, gpointer data)
Definition plrdlg.c:324
#define PLR_DLG_COL_TOOLTIP
Definition plrdlg.c:71
static void players_meet_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:767
static void confirm_cancel_pact(enum clause_type clause, int plrno, char *title, char *question)
Definition plrdlg.c:785
static void players_vision_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:849
static gint plrdlg_sort_func(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data)
Definition plrdlg.c:242
GdkPixbuf * get_flag(const struct nation_type *nation)
Definition plrdlg.c:607
#define MIN_DIMENSION
Definition plrdlg.c:600
static GtkListStore * players_dialog_store_new(void)
Definition plrdlg.c:266
static GtkWidget * players_meet_command
Definition plrdlg.c:62
static void toggle_view(GtkCheckMenuItem *item, gpointer data)
Definition plrdlg.c:313
static void players_ai_skill_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:945
static void create_players_dialog(void)
Definition plrdlg.c:427
static void players_intel_callback(GtkMenuItem *item, gpointer data)
Definition plrdlg.c:876
static void update_players_menu(void)
Definition plrdlg.c:154
static GtkWidget * create_show_menu(void)
Definition plrdlg.c:395
static GtkWidget * players_war_command
Definition plrdlg.c:63
static void selection_callback(GtkTreeSelection *selection, gpointer data)
Definition plrdlg.c:201
const char * title
Definition repodlgs.c:1314
GType type
Definition repodlgs.c:1313
void popup_spaceship_dialog(struct player *pplayer)
GdkPixbuf * surface_get_pixbuf(cairo_surface_t *surf, int width, int height)
Definition sprite.c:418
GdkPixbuf * sprite_get_pixbuf(struct sprite *sprite)
Definition sprite.c:402
void sprite_get_bounding_box(struct sprite *sprite, int *start_x, int *start_y, int *end_x, int *end_y)
Definition sprite.c:321
@ COL_TEXT
Definition unitselect.c:50
#define show(id)
Definition widget.h:235
#define fc_assert_ret(condition)
Definition log.h:192
#define fc_assert_ret_val(condition, val)
Definition log.h:195
#define FC_FREE(ptr)
Definition mem.h:41
#define fc_strdup(str)
Definition mem.h:43
const char * nation_adjective_for_player(const struct player *pplayer)
Definition nation.c:169
struct nation_type * nation_of_player(const struct player *pplayer)
Definition nation.c:444
const char * nation_plural_for_player(const struct player *pplayer)
Definition nation.c:178
struct client_options gui_options
Definition options.c:71
int dsend_packet_diplomacy_cancel_pact(struct connection *pc, int other_player_id, enum clause_type clause)
int dsend_packet_diplomacy_init_meeting_req(struct connection *pc, int counterpart)
bool is_settable_ai_level(enum ai_level level)
Definition player.c:1925
struct player * player_by_number(const int player_id)
Definition player.c:849
bool players_on_same_team(const struct player *pplayer1, const struct player *pplayer2)
Definition player.c:1480
enum diplstate_type cancel_pact_result(enum diplstate_type oldstate)
Definition player.c:68
int player_number(const struct player *pplayer)
Definition player.c:837
const char * player_name(const struct player *pplayer)
Definition player.c:895
enum dipl_reason pplayer_can_cancel_treaty(const struct player *p1, const struct player *p2)
Definition player.c:98
struct player_diplstate * player_diplstate_get(const struct player *plr1, const struct player *plr2)
Definition player.c:324
bool gives_shared_vision(const struct player *me, const struct player *them)
Definition player.c:1489
#define ai_level_cmd(_level_)
Definition player.h:572
#define players_iterate_end
Definition player.h:542
@ DIPL_ERROR
Definition player.h:193
#define players_iterate(_pplayer)
Definition player.h:537
static bool is_barbarian(const struct player *pplayer)
Definition player.h:491
int player_dlg_default_sort_column(void)
struct player_dlg_column player_dlg_columns[]
const int num_player_dlg_columns
@ COL_BOOLEAN
@ COL_FLAG
@ COL_RIGHT_TEXT
@ COL_COLOR
struct setting_list * level[OLEVELS_NUM]
Definition settings.c:190
@ SSHIP_NONE
Definition spaceship.h:84
struct connection conn
Definition client_main.h:96
bool player_dlg_show_dead_players
Definition options.h:221
Definition colors.h:21
GdkRGBA color
Definition colors.h:22
struct player * playing
Definition connection.h:151
GtkWidget * vbox
Definition gui_stuff.h:72
Definition climisc.h:82
enum diplstate_type type
Definition player.h:199
plr_dlg_sort_func sort_func
enum spaceship_state state
Definition spaceship.h:108
bool is_alive
Definition player.h:268
struct player_spaceship spaceship
Definition player.h:286
struct player_score score
Definition player.h:283
#define TRUE
Definition support.h:46
#define FALSE
Definition support.h:47
const char * score_tooltip(const struct player *pplayer, int score)
Definition text.c:2174
struct sprite * get_nation_flag_sprite(const struct tileset *t, const struct nation_type *pnation)
Definition tilespec.c:6980