Freeciv21
Develop your civilization from humble roots to a global empire
diplodlg_g.h File Reference
#include "shared.h"
#include "diptreaty.h"
+ Include dependency graph for diplodlg_g.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void handle_diplomacy_init_meeting (int counterpart, int initiated_from)
 Handle the start of a diplomacy meeting - usually by poping up a diplomacy dialog. More...
 
void handle_diplomacy_cancel_meeting (int counterpart, int initiated_from)
 Update the diplomacy dialog when the meeting is canceled (the dialog should be closed). More...
 
void handle_diplomacy_create_clause (int counterpart, int giver, enum clause_type type, int value)
 Update the diplomacy dialog by adding a clause. More...
 
void handle_diplomacy_remove_clause (int counterpart, int giver, enum clause_type type, int value)
 Update the diplomacy dialog by removing a clause. More...
 
void handle_diplomacy_accept_treaty (int counterpart, bool I_accepted, bool other_accepted)
 Update a player's acceptance status of a treaty (traditionally shown with the thumbs-up/thumbs-down sprite). More...
 
void close_all_diplomacy_dialogs ()
 Close all open diplomacy dialogs. More...
 

Function Documentation

◆ close_all_diplomacy_dialogs()

void close_all_diplomacy_dialogs ( )

Close all open diplomacy dialogs.

Called when the client disconnects from game.

Definition at line 970 of file diplodlg.cpp.

Referenced by client_state().

◆ handle_diplomacy_accept_treaty()

void handle_diplomacy_accept_treaty ( int  counterpart,
bool  I_accepted,
bool  other_accepted 
)

Update a player's acceptance status of a treaty (traditionally shown with the thumbs-up/thumbs-down sprite).

Definition at line 825 of file diplodlg.cpp.

◆ handle_diplomacy_cancel_meeting()

void handle_diplomacy_cancel_meeting ( int  counterpart,
int  initiated_from 
)

Update the diplomacy dialog when the meeting is canceled (the dialog should be closed).

Definition at line 923 of file diplodlg.cpp.

◆ handle_diplomacy_create_clause()

void handle_diplomacy_create_clause ( int  counterpart,
int  giver,
enum clause_type  type,
int  value 
)

Update the diplomacy dialog by adding a clause.

Definition at line 898 of file diplodlg.cpp.

◆ handle_diplomacy_init_meeting()

void handle_diplomacy_init_meeting ( int  counterpart,
int  initiated_from 
)

Handle the start of a diplomacy meeting - usually by poping up a diplomacy dialog.

Definition at line 852 of file diplodlg.cpp.

◆ handle_diplomacy_remove_clause()

void handle_diplomacy_remove_clause ( int  counterpart,
int  giver,
enum clause_type  type,
int  value 
)

Update the diplomacy dialog by removing a clause.

Definition at line 944 of file diplodlg.cpp.