Freeciv-3.1
|
#include <SDL2/SDL.h>
#include "fcintl.h"
#include "log.h"
#include "government.h"
#include "research.h"
#include "client_main.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "repodlgs.h"
#include "spaceshipdlg.h"
#include "sprite.h"
#include "widget.h"
#include "inteldlg.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | intel_dialog |
Macros | |
#define | SPECLIST_TAG dialog |
#define | SPECLIST_TYPE struct intel_dialog |
#define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct intel_dialog, dialoglist, pdialog) |
#define | dialog_list_iterate_end LIST_ITERATE_END |
Functions | |
static struct intel_dialog * | create_intel_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 int | intel_window_dlg_callback (struct widget *pwindow) |
static int | tech_callback (struct widget *pwidget) |
static int | spaceship_callback (struct widget *pwidget) |
static int | exit_intel_dlg_callback (struct widget *pwidget) |
void | close_intel_dialog (struct player *p) |
void | popup_intel_dialog (struct player *p) |
void | popdown_intel_dialog (struct player *p) |
void | popdown_intel_dialogs (void) |
void | update_intel_dialog (struct player *p) |
Variables | |
static struct dialog_list * | dialog_list |
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct intel_dialog, dialoglist, pdialog) |
Definition at line 59 of file inteldlg.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 61 of file inteldlg.c.
#define SPECLIST_TAG dialog |
Definition at line 55 of file inteldlg.c.
#define SPECLIST_TYPE struct intel_dialog |
Definition at line 56 of file inteldlg.c.
void close_intel_dialog | ( | struct player * | p | ) |
Close an intelligence dialog towards given player.
Definition at line 150 of file inteldlg.c.
|
static |
Create an intelligence dialog towards given player.
Definition at line 158 of file inteldlg.c.
|
static |
User interacted with intelligence dialog close button
Definition at line 137 of file inteldlg.c.
Referenced by update_intel_dialog().
|
static |
Get intelligence dialog towards given player
Definition at line 85 of file inteldlg.c.
void intel_dialog_done | ( | void | ) |
Free intelligence dialog
Definition at line 77 of file inteldlg.c.
void intel_dialog_init | ( | void | ) |
Allocate intelligence dialog
Definition at line 69 of file inteldlg.c.
|
static |
User interacted with the intelligence dialog window
Definition at line 99 of file inteldlg.c.
Referenced by update_intel_dialog().
void popdown_intel_dialog | ( | struct player * | p | ) |
Popdown an intelligence dialog for the given player.
Definition at line 195 of file inteldlg.c.
Referenced by close_intel_dialog(), exit_intel_dlg_callback(), popdown_intel_dialogs(), and spaceship_callback().
void popdown_intel_dialogs | ( | void | ) |
Popdown all intelligence dialogs
Definition at line 214 of file inteldlg.c.
Referenced by popdown_all_game_dialogs().
void popup_intel_dialog | ( | struct player * | p | ) |
Popup an intelligence dialog for the given player.
Definition at line 177 of file inteldlg.c.
|
static |
User interacted with spaceship widget
Definition at line 122 of file inteldlg.c.
Referenced by update_intel_dialog().
|
static |
User interacted with tech widget
Definition at line 113 of file inteldlg.c.
Referenced by update_intel_dialog().
void update_intel_dialog | ( | struct player * | p | ) |
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 225 of file inteldlg.c.
|
static |
Definition at line 63 of file inteldlg.c.