Freeciv-3.3
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations | Functions | Variables
plrdlg_common.h File Reference
#include "support.h"
#include "fc_types.h"
#include "player.h"

Go to the source code of this file.

Data Structures

struct  player_dlg_column
 

Typedefs

typedef int(* plr_dlg_sort_func) (const struct player *p1, const struct player *p2)
 

Enumerations

enum  player_dlg_column_type {
  COL_FLAG , COL_COLOR , COL_BOOLEAN , COL_TEXT ,
  COL_RIGHT_TEXT
}
 

Functions

const charplrdlg_col_state (const struct player *plr)
 
void init_player_dlg_common (void)
 
int player_dlg_default_sort_column (void)
 

Variables

struct player_dlg_column player_dlg_columns []
 
const int num_player_dlg_columns
 

Typedef Documentation

◆ plr_dlg_sort_func

typedef int(* plr_dlg_sort_func) (const struct player *p1, const struct player *p2)

Definition at line 36 of file plrdlg_common.h.

Enumeration Type Documentation

◆ player_dlg_column_type

Enumerator
COL_FLAG 
COL_COLOR 
COL_BOOLEAN 
COL_TEXT 
COL_RIGHT_TEXT 

Definition at line 28 of file plrdlg_common.h.

Function Documentation

◆ init_player_dlg_common()

void init_player_dlg_common ( void  )

Translate all titles

Definition at line 614 of file plrdlg_common.c.

Referenced by client_main().

◆ player_dlg_default_sort_column()

int player_dlg_default_sort_column ( void  )

Return default player dlg sorting column.

Definition at line 606 of file plrdlg_common.c.

Referenced by create_players_dialog().

◆ plrdlg_col_state()

const char * plrdlg_col_state ( const struct player plr)

Returns a translated string giving the player's "state".

FIXME: These terms aren't very intuitive for new players.

Definition at line 230 of file plrdlg_common.c.

Variable Documentation

◆ num_player_dlg_columns

const int num_player_dlg_columns
extern

◆ player_dlg_columns

struct player_dlg_column player_dlg_columns[]
extern