Freeciv-3.3
Loading...
Searching...
No Matches
Functions
diplhand.h File Reference
#include "fc_types.h"
#include <hand_gen.h>

Go to the source code of this file.

Functions

void establish_embassy (struct player *pplayer, struct player *aplayer)
 
void send_diplomatic_meetings (struct connection *dest)
 
void cancel_all_meetings (struct player *pplayer)
 
void reject_all_treaties (struct player *pplayer)
 
void set_diplstate_type (struct player_diplstate *state1, struct player_diplstate *state2, enum diplstate_type type)
 
enum diplstate_type valid_dst_closest (struct player_diplstate *dst)
 

Function Documentation

◆ cancel_all_meetings()

void cancel_all_meetings ( struct player pplayer)

Cancels all meetings of player.

Definition at line 923 of file diplhand.c.

Referenced by kill_player(), player_set_to_ai_mode(), and player_set_under_human_control().

◆ establish_embassy()

void establish_embassy ( struct player pplayer,
struct player aplayer 
)

Create an embassy. pplayer gets an embassy with aplayer.

Definition at line 698 of file diplhand.c.

Referenced by diplomat_embassy(), handle_diplomacy_accept_treaty_req(), and split_player().

◆ reject_all_treaties()

void reject_all_treaties ( struct player pplayer)

Reject all treaties currently being negotiated

Definition at line 935 of file diplhand.c.

Referenced by handle_diplomacy_cancel_pact().

◆ send_diplomatic_meetings()

void send_diplomatic_meetings ( struct connection dest)

Send information on any on-going diplomatic meetings for connection's player. For re-connections.

Definition at line 885 of file diplhand.c.

Referenced by begin_phase(), and connection_attach_real().

◆ set_diplstate_type()

void set_diplstate_type ( struct player_diplstate state1,
struct player_diplstate state2,
enum diplstate_type  type 
)

Set diplstate between two players.

Definition at line 122 of file diplhand.c.

Referenced by barbarian_initial_wars(), handle_diplomacy_accept_treaty_req(), make_contact(), split_player(), and srv_ready().

◆ valid_dst_closest()

enum diplstate_type valid_dst_closest ( struct player_diplstate dst)

Return closest diplstate dst has had, with extra sanity checking (i.e. may return state other than the recorder max_state)

Definition at line 108 of file diplhand.c.

Referenced by sg_load_player_main(), and sg_load_player_main().