|
Freeciv-3.4
|
#include <stdio.h>#include <stdlib.h>#include <gtk/gtk.h>#include "log.h"#include "mem.h"#include "shared.h"#include "support.h"#include "diptreaty.h"#include "fcintl.h"#include "game.h"#include "government.h"#include "map.h"#include "nation.h"#include "packets.h"#include "player.h"#include "research.h"#include "chatline.h"#include "client_main.h"#include "climisc.h"#include "options.h"#include "diplodlg.h"#include "gui_main.h"#include "gui_stuff.h"#include "mapview.h"#include "plrdlg.h"#include "speclist.h"Go to the source code of this file.
Data Structures | |
| struct | Diplomacy_dialog |
| struct | Diplomacy_notebook |
| struct | city_deal |
| struct | _FcClauseRow |
| struct | _FcClauseClass |
Macros | |
| #define | SPECLIST_TAG dialog |
| #define | SPECLIST_TYPE struct Diplomacy_dialog |
| #define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct Diplomacy_dialog, dialoglist, pdialog) |
| #define | dialog_list_iterate_end LIST_ITERATE_END |
| #define | RESPONSE_CANCEL_MEETING 100 |
| #define | RESPONSE_CANCEL_MEETING_ALL 101 |
| #define | FC_TYPE_CLAUSE_ROW (fc_clause_row_get_type()) |
Variables | |
| static struct dialog_list * | dialog_list |
| static struct Diplomacy_notebook * | dipl_main |
| #define dialog_list_iterate | ( | dialoglist, | |
| pdialog | |||
| ) | TYPED_LIST_ITERATE(struct Diplomacy_dialog, dialoglist, pdialog) |
Definition at line 78 of file diplodlg.c.
| #define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 80 of file diplodlg.c.
| #define FC_TYPE_CLAUSE_ROW (fc_clause_row_get_type()) |
Definition at line 137 of file diplodlg.c.
| #define RESPONSE_CANCEL_MEETING 100 |
Definition at line 133 of file diplodlg.c.
| #define RESPONSE_CANCEL_MEETING_ALL 101 |
Definition at line 134 of file diplodlg.c.
| #define SPECLIST_TAG dialog |
Definition at line 74 of file diplodlg.c.
| #define SPECLIST_TYPE struct Diplomacy_dialog |
Definition at line 75 of file diplodlg.c.
Close all dialogs, for when client disconnects from game.
Definition at line 1389 of file diplodlg.c.
|
static |
Close diplomacy dialog
Definition at line 1327 of file diplodlg.c.
|
static |
Popup menu about adding clauses
Definition at line 316 of file diplodlg.c.
|
static |
Setups diplomacy dialog widgets.
Definition at line 806 of file diplodlg.c.
User hit enter after entering gold amount
Definition at line 1369 of file diplodlg.c.
Adding pact clause
Definition at line 1229 of file diplodlg.c.
|
static |
Alliance pact menu item activated
Definition at line 1262 of file diplodlg.c.
|
static |
Ceasefire pact menu item activated
Definition at line 1242 of file diplodlg.c.
|
static |
Free resources allocated for diplomacy dialog
Definition at line 1344 of file diplodlg.c.
|
static |
Embassy menu item activated
Definition at line 1290 of file diplodlg.c.
Initialize diplomacy dialog
Definition at line 1335 of file diplodlg.c.
|
static |
Map menu item activated
Definition at line 1196 of file diplodlg.c.
|
static |
Peace pact menu item activated
Definition at line 1252 of file diplodlg.c.
|
static |
Seamap menu item activated
Definition at line 1212 of file diplodlg.c.
|
static |
Shared tiles menu item activated
Definition at line 1308 of file diplodlg.c.
|
static |
Callback for the diplomatic dialog: give tech.
Definition at line 1124 of file diplodlg.c.
|
static |
Shared vision menu item activated
Definition at line 1272 of file diplodlg.c.
|
static |
Create the main tab for diplomatic meetings.
Definition at line 659 of file diplodlg.c.
Destroy main diplomacy dialog.
Definition at line 705 of file diplodlg.c.
User has responded to whole diplomacy dialog (main tab).
Definition at line 717 of file diplodlg.c.
|
static |
Remove diplomacy dialog from use.
Definition at line 744 of file diplodlg.c.
User has responded to whole diplomacy dialog (one meeting).
Definition at line 775 of file diplodlg.c.
|
static |
Initialization method for FcClauseRow class
Definition at line 159 of file diplodlg.c.
|
static |
Initialization method for FcClauseRow
Definition at line 167 of file diplodlg.c.
|
static |
Find diplomacy dialog between player and other player
Definition at line 1352 of file diplodlg.c.
Someone is initiating meeting with us.
Definition at line 205 of file diplodlg.c.
Prepare to clause creation or removal.
Definition at line 231 of file diplodlg.c.
FcClauseRow creation method Server tells us that either party has accepted treaty
Definition at line 188 of file diplodlg.c.
| void gui_recv_cancel_meeting | ( | struct treaty * | ptreaty, |
| struct player * | they, | ||
| struct player * | initiator | ||
| ) |
Meeting has been cancelled.
Definition at line 214 of file diplodlg.c.
Added clause to the meeting
Definition at line 239 of file diplodlg.c.
Removed clause from meeting.
Definition at line 256 of file diplodlg.c.
|
static |
Popup the dialog 10% inside the main-window
Definition at line 273 of file diplodlg.c.
|
static |
Some clause activated
Definition at line 633 of file diplodlg.c.
|
static |
Utility for g_list_sort(). See below.
Definition at line 304 of file diplodlg.c.
|
static |
Update diplomacy dialog
Definition at line 1086 of file diplodlg.c.
|
static |
Definition at line 82 of file diplodlg.c.
|
static |
Definition at line 83 of file diplodlg.c.