Freeciv-3.3
|
#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 |
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 |
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 81 of file diplodlg.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 83 of file diplodlg.c.
#define RESPONSE_CANCEL_MEETING 100 |
Definition at line 114 of file diplodlg.c.
#define RESPONSE_CANCEL_MEETING_ALL 101 |
Definition at line 115 of file diplodlg.c.
#define SPECLIST_TAG dialog |
Definition at line 77 of file diplodlg.c.
#define SPECLIST_TYPE struct Diplomacy_dialog |
Definition at line 78 of file diplodlg.c.
Close all dialogs, for when client disconnects from game.
Definition at line 1260 of file diplodlg.c.
Referenced by set_client_state().
|
static |
Close diplomacy dialog
Definition at line 1198 of file diplodlg.c.
Referenced by close_all_diplomacy_dialogs(), and gui_recv_cancel_meeting().
|
static |
Setups diplomacy dialog widgets.
Definition at line 689 of file diplodlg.c.
Referenced by gui_init_meeting(), and popup_diplomacy_dialog().
User hit enter after entering gold amount
Definition at line 1240 of file diplodlg.c.
Referenced by create_diplomacy_dialog().
|
static |
Destroy diplomacy dialog
Definition at line 625 of file diplodlg.c.
Referenced by close_diplomacy_dialog().
Adding pact clause
Definition at line 1113 of file diplodlg.c.
Referenced by diplomacy_dialog_alliance_callback(), diplomacy_dialog_alliance_callback(), diplomacy_dialog_ceasefire_callback(), diplomacy_dialog_ceasefire_callback(), diplomacy_dialog_peace_callback(), and diplomacy_dialog_peace_callback().
Alliance pact menu item activated
Definition at line 1143 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Ceasefire pact menu item activated
Definition at line 1127 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Callback for trading cities
Definition at line 1062 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Free resources allocated for diplomacy dialog
Definition at line 1215 of file diplodlg.c.
Embassy menu item activated
Definition at line 1166 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Initialize diplomacy dialog
Definition at line 1206 of file diplodlg.c.
Referenced by activate_gui(), ui_main(), and ui_main().
Map menu item activated
Definition at line 1082 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Peace pact menu item activated
Definition at line 1135 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Seamap menu item activated
Definition at line 1097 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Shared tiles item activated
Definition at line 1181 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Callback for the diplomatic dialog: give tech.
Definition at line 1014 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
Shared vision menu item activated
Definition at line 1151 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
|
static |
Create the main tab for diplomatic meetings.
Definition at line 541 of file diplodlg.c.
Referenced by create_diplomacy_dialog().
Destroy main diplomacy dialog.
Definition at line 586 of file diplodlg.c.
Referenced by diplomacy_destroy().
User has responded to whole diplomacy dialog (main tab).
Definition at line 598 of file diplodlg.c.
Referenced by diplomacy_main_create().
User has responded to whole diplomacy dialog (one meeting).
Definition at line 658 of file diplodlg.c.
Referenced by create_diplomacy_dialog().
|
static |
Find diplomacy dialog between player and other player
Definition at line 1223 of file diplodlg.c.
Referenced by gui_recv_accept_treaty(), gui_recv_cancel_meeting(), gui_recv_create_clause(), gui_recv_remove_clause(), and popup_diplomacy_dialog().
Someone is initiating meeting with us.
Definition at line 137 of file diplodlg.c.
Referenced by client_init_meeting().
Prepare to clause creation or removal.
Definition at line 163 of file diplodlg.c.
Referenced by client_recv_create_clause(), and client_recv_remove_clause().
Server tells us that either party has accepted treaty
Definition at line 120 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 146 of file diplodlg.c.
Added clause to the meeting
Definition at line 171 of file diplodlg.c.
Removed clause from meeting.
Definition at line 188 of file diplodlg.c.
Referenced by client_recv_remove_clause().
|
static |
Popup menu about adding clauses
Definition at line 248 of file diplodlg.c.
Referenced by create_diplomacy_dialog().
|
static |
Popup the dialog 10% inside the main-window
Definition at line 205 of file diplodlg.c.
Referenced by gui_init_meeting(), and player_nation_callback().
|
static |
Some clause activated
Definition at line 515 of file diplodlg.c.
Referenced by create_diplomacy_dialog().
|
static |
Utility for g_list_sort(). See below.
Definition at line 236 of file diplodlg.c.
Referenced by create_clause_menu(), and popup_add_menu().
|
static |
Update diplomacy dialog
Definition at line 976 of file diplodlg.c.
Referenced by create_diplomacy_dialog(), gui_init_meeting(), gui_recv_accept_treaty(), gui_recv_create_clause(), and gui_recv_remove_clause().
|
static |
Definition at line 85 of file diplodlg.c.
Referenced by close_all_diplomacy_dialogs(), create_diplomacy_dialog(), diplomacy_destroy(), diplomacy_dialog_done(), diplomacy_dialog_init(), diplomacy_main_response(), find_diplomacy_dialog(), get_diplomacy_dialog(), gui_recv_cancel_meeting(), and popdown_diplomacy_dialogs().
|
static |
Definition at line 86 of file diplodlg.c.
Referenced by diplomacy_destroy(), diplomacy_dialog_init(), diplomacy_main_create(), diplomacy_main_destroy(), diplomacy_main_response(), and popup_diplomacy_dialog().