Freeciv-3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include "fcintl.h"
#include "log.h"
#include "shared.h"
#include "support.h"
#include "government.h"
#include "nation.h"
#include "packets.h"
#include "player.h"
#include "research.h"
#include "client_main.h"
#include "options.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "mapview.h"
#include "inteldlg.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | intel_dialog |
struct | intel_wonder_dialog |
Enumerations | |
enum | table_label { LABEL_RULER , LABEL_GOVERNMENT , LABEL_CAPITAL , LABEL_GOLD , LABEL_SEP1 , LABEL_TAX , LABEL_SCIENCE , LABEL_LUXURY , LABEL_SEP2 , LABEL_RESEARCHING , LABEL_CULTURE , LABEL_LAST } |
Functions | |
static struct intel_dialog * | create_intel_dialog (struct player *p) |
static struct intel_wonder_dialog * | create_intel_wonder_dialog (struct player *p) |
void | intel_dialog_init (void) |
void | intel_dialog_done (void) |
static struct intel_dialog * | get_intel_dialog (struct player *pplayer) |
static struct intel_wonder_dialog * | get_intel_wonder_dialog (struct player *pplayer) |
void | popup_intel_dialog (struct player *p) |
void | popup_intel_wonder_dialog (struct player *p) |
static void | intel_destroy_callback (GtkWidget *w, gpointer data) |
static void | intel_wonder_destroy_callback (GtkWidget *w, gpointer data) |
void | close_intel_dialog (struct player *p) |
void | close_intel_wonder_dialog (struct player *p) |
void | update_intel_dialog (struct player *p) |
void | update_intel_wonder_dialog (struct player *p) |
Variables | |
static const char * | table_text [] |
static struct dialog_list * | dialog_list |
static struct wonder_dialog_list * | wonder_dialogs |
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct intel_dialog, dialoglist, pdialog) |
Definition at line 91 of file inteldlg.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 93 of file inteldlg.c.
#define SPECLIST_TAG dialog |
Definition at line 87 of file inteldlg.c.
#define SPECLIST_TAG wonder_dialog |
Definition at line 87 of file inteldlg.c.
#define SPECLIST_TYPE struct intel_dialog |
Definition at line 88 of file inteldlg.c.
#define SPECLIST_TYPE struct intel_wonder_dialog |
Definition at line 88 of file inteldlg.c.
#define wonder_dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct intel_wonder_dialog, dialoglist, pdialog) |
Definition at line 107 of file inteldlg.c.
#define wonder_dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 109 of file inteldlg.c.
Enumerator | |
---|---|
LABEL_RULER | |
LABEL_GOVERNMENT | |
LABEL_CAPITAL | |
LABEL_GOLD | |
LABEL_SEP1 | |
LABEL_TAX | |
LABEL_SCIENCE | |
LABEL_LUXURY | |
LABEL_SEP2 | |
LABEL_RESEARCHING | |
LABEL_CULTURE | |
LABEL_LAST |
Definition at line 62 of file inteldlg.c.
Close an intelligence dialog for the given player.
Definition at line 223 of file inteldlg.c.
Referenced by handle_player_remove().
Close an wonders list dialog for the given player.
Definition at line 233 of file inteldlg.c.
|
static |
Create new intelligence dialog between client user and player given as parameter.
Definition at line 244 of file inteldlg.c.
Referenced by popup_intel_dialog().
|
static |
Create new wonders list dialog between client user and player given as parameter.
Definition at line 378 of file inteldlg.c.
Referenced by popup_intel_wonder_dialog().
|
static |
Get intelligence dialog between client user and other player passed as parameter.
Definition at line 138 of file inteldlg.c.
Referenced by close_intel_dialog(), intel_window_dlg_callback(), popdown_intel_dialog(), popup_intel_dialog(), and update_intel_dialog().
|
static |
Get wonder list dialog between client user and other player passed as parameter.
Definition at line 153 of file inteldlg.c.
Referenced by close_intel_wonder_dialog(), popup_intel_wonder_dialog(), and update_intel_wonder_dialog().
Intelligence dialog destruction requested
Definition at line 199 of file inteldlg.c.
Referenced by close_intel_dialog(), and create_intel_dialog().
Free resources allocated for intelligence dialogs
Definition at line 128 of file inteldlg.c.
Initialize intelligence dialogs
Definition at line 119 of file inteldlg.c.
Referenced by activate_gui(), ui_main(), and ui_main().
Wonders list dialog destruction requested
Definition at line 211 of file inteldlg.c.
Referenced by close_intel_wonder_dialog(), and create_intel_wonder_dialog().
Open intelligence dialog
Definition at line 167 of file inteldlg.c.
Referenced by button_press_callback(), left_button_press_callback(), player_nation_callback(), players_intel_callback(), and players_intel_callback().
Open wonder list dialog
Definition at line 183 of file inteldlg.c.
Referenced by players_intel_wonder_callback(), and players_intel_wonder_callback().
Update the intelligence dialog for the given player. This is called by the core client code when that player's information changes.
Definition at line 462 of file inteldlg.c.
Referenced by handle_player_info(), and popup_intel_dialog().
Update the wonders list dialog for the given player.
Definition at line 636 of file inteldlg.c.
Referenced by popup_intel_wonder_dialog(), and update_intel_dialog().
|
static |
Definition at line 111 of file inteldlg.c.
Referenced by create_intel_dialog(), get_intel_dialog(), intel_destroy_callback(), intel_dialog_done(), intel_dialog_init(), popdown_intel_dialog(), and popdown_intel_dialogs().
|
static |
Definition at line 113 of file inteldlg.c.
Referenced by create_intel_wonder_dialog(), get_intel_wonder_dialog(), intel_dialog_done(), intel_dialog_init(), and intel_wonder_destroy_callback().