Freeciv-3.3
Loading...
Searching...
No Matches
plrdlg_common.h
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#ifndef FC__PLRDLG_COMMON_H
14#define FC__PLRDLG_COMMON_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/* utility */
21#include "support.h" /* bool type */
22
23/* common */
24#include "fc_types.h"
25#include "player.h"
26
27
35
36typedef int (*plr_dlg_sort_func)(const struct player* p1,
37 const struct player* p2);
38
40 bool show;
42 const char *title; /* already translated */
43 const char *(*func)(const struct player *); /* if type = COL_*TEXT */
44 bool (*bool_func)(const struct player *); /* if type = COL_BOOLEAN */
46 const char *tagname; /* for save_options */
47};
48
50extern const int num_player_dlg_columns;
51
52const char *plrdlg_col_state(const struct player *plr);
53
54void init_player_dlg_common(void);
56
57#ifdef __cplusplus
58}
59#endif /* __cplusplus */
60
61#endif /* FC__PLRDLG_COMMON_H */
char * incite_cost
Definition comments.c:76
int player_dlg_default_sort_column(void)
void init_player_dlg_common(void)
const char * plrdlg_col_state(const struct player *plr)
int(* plr_dlg_sort_func)(const struct player *p1, const struct player *p2)
struct player_dlg_column player_dlg_columns[]
player_dlg_column_type
@ COL_TEXT
@ COL_BOOLEAN
@ COL_FLAG
@ COL_RIGHT_TEXT
@ COL_COLOR
const int num_player_dlg_columns
bool(* bool_func)(const struct player *)
const char * tagname
plr_dlg_sort_func sort_func
const char * title
enum player_dlg_column_type type
#define bool
Definition support.h:71