Freeciv-3.3
Loading...
Searching...
No Matches
Macros | Functions | Variables
plrdlg.c File Reference
#include <SDL3/SDL.h>
#include "astring.h"
#include "fcintl.h"
#include "nation.h"
#include "client_main.h"
#include "climisc.h"
#include "chatline.h"
#include "colors.h"
#include "diplodlg.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "inteldlg.h"
#include "mapview.h"
#include "sprite.h"
#include "themespec.h"
#include "widget.h"
#include "plrdlg.h"

Go to the source code of this file.

Macros

#define M_PI_2   1.57079632679489661923 /* pi/2 */
 

Functions

static int player_nation_callback (struct widget *pwidget)
 
static int exit_players_dlg_callback (struct widget *pwidget)
 
static int player_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_ceasefire_status_callback (struct widget *pwidget)
 
static int toggle_draw_peace_status_callback (struct widget *pwidget)
 
static int toggle_draw_alliance_status_callback (struct widget *pwidget)
 
static int toggle_draw_neutral_status_callback (struct widget *pwidget)
 
static bool have_diplomat_info_about (struct player *pplayer)
 
void real_players_dialog_update (void *unused)
 
void popup_players_dialog (bool raise)
 
void popdown_players_dialog (void)
 
static int players_nations_window_dlg_callback (struct widget *pwindow)
 
static int exit_players_nations_dlg_callback (struct widget *pwidget)
 
void popup_players_nations_dialog (void)
 
void popdown_players_nations_dialog (void)
 

Variables

static struct small_dialogpplayers_dlg = NULL
 
static struct advanced_dialogshort_players_dlg = NULL
 

Macro Definition Documentation

◆ M_PI_2

#define M_PI_2   1.57079632679489661923 /* pi/2 */

Definition at line 52 of file plrdlg.c.

Function Documentation

◆ exit_players_dlg_callback()

static int exit_players_dlg_callback ( struct widget pwidget)
static

User interacted with player dialog close button.

Definition at line 62 of file plrdlg.c.

◆ exit_players_nations_dlg_callback()

static int exit_players_nations_dlg_callback ( struct widget pwidget)
static

User interacted with nations window close button.

Definition at line 590 of file plrdlg.c.

◆ have_diplomat_info_about()

static bool have_diplomat_info_about ( struct player pplayer)
static

Does the attached player have embassy-level information about the player.

Definition at line 208 of file plrdlg.c.

◆ player_callback()

static int player_callback ( struct widget pwidget)
static

User interacted with player widget.

Definition at line 75 of file plrdlg.c.

◆ player_nation_callback()

static int player_nation_callback ( struct widget pwidget)
static

User interacted with widget of a single nation/player.

Definition at line 603 of file plrdlg.c.

◆ players_nations_window_dlg_callback()

static int players_nations_window_dlg_callback ( struct widget pwindow)
static

User interacted with nations window.

Definition at line 582 of file plrdlg.c.

◆ players_window_dlg_callback()

static int players_window_dlg_callback ( struct widget pwindow)
static

User interacted with player dialog window.

Definition at line 84 of file plrdlg.c.

◆ popdown_players_dialog()

void popdown_players_dialog ( void  )

Popdown the player list dialog.

Definition at line 566 of file plrdlg.c.

◆ popdown_players_nations_dialog()

void popdown_players_nations_dialog ( void  )

Popdown the short player list dialog version.

Definition at line 873 of file plrdlg.c.

◆ popup_players_dialog()

void popup_players_dialog ( bool  raise)

Popup (or raise) the player list dialog.

Definition at line 333 of file plrdlg.c.

◆ popup_players_nations_dialog()

void popup_players_nations_dialog ( void  )

Popup (or raise) the small player list dialog version.

Definition at line 664 of file plrdlg.c.

◆ real_players_dialog_update()

void real_players_dialog_update ( void unused)

Update all information in the player list dialog.

Definition at line 218 of file plrdlg.c.

◆ toggle_draw_alliance_status_callback()

static int toggle_draw_alliance_status_callback ( struct widget pwidget)
static

User interacted with 'draw alliance status' toggle.

Definition at line 166 of file plrdlg.c.

◆ toggle_draw_ceasefire_status_callback()

static int toggle_draw_ceasefire_status_callback ( struct widget pwidget)
static

User interacted with 'draw cease-fire status' toggle.

Definition at line 124 of file plrdlg.c.

◆ toggle_draw_neutral_status_callback()

static int toggle_draw_neutral_status_callback ( struct widget pwidget)
static

User interacted with 'draw neutral status' toggle.

Definition at line 187 of file plrdlg.c.

◆ toggle_draw_peace_status_callback()

static int toggle_draw_peace_status_callback ( struct widget pwidget)
static

User interacted with 'draw peace status' toggle.

Definition at line 145 of file plrdlg.c.

◆ toggle_draw_war_status_callback()

static int toggle_draw_war_status_callback ( struct widget pwidget)
static

User interacted with 'draw war status' toggle.

Definition at line 103 of file plrdlg.c.

Variable Documentation

◆ pplayers_dlg

struct small_dialog* pplayers_dlg = NULL
static

Definition at line 55 of file plrdlg.c.

◆ short_players_dlg

struct advanced_dialog* short_players_dlg = NULL
static

Definition at line 577 of file plrdlg.c.