forked from longturn/freeciv21
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiplhand.h
41 lines (31 loc) · 1.48 KB
/
diplhand.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**************************************************************************
Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
__ __ part of Freeciv21. Freeciv21 is free software: you can
/ \\..// \ redistribute it and/or modify it under the terms of the GNU
( oo ) General Public License as published by the Free Software
\__/ Foundation, either version 3 of the License, or (at your
option) any later version. You should have received
a copy of the GNU General Public License along with Freeciv21. If not,
see https://www.gnu.org/licenses/.
**************************************************************************/
#pragma once
#include "fc_types.h"
#include "hand_gen.h"
struct Treaty;
struct packet_diplomacy_info;
struct connection;
#define SPECLIST_TAG treaty
#define SPECLIST_TYPE struct Treaty
#include "speclist.h"
#define treaty_list_iterate(list, p) \
TYPED_LIST_ITERATE(struct Treaty, list, p)
#define treaty_list_iterate_end LIST_ITERATE_END
void establish_embassy(struct player *pplayer, struct player *aplayer);
void diplhand_init();
void diplhand_free();
void free_treaties();
struct Treaty *find_treaty(struct player *plr0, struct player *plr1);
void send_diplomatic_meetings(struct connection *dest);
void cancel_all_meetings(struct player *pplayer);
void reject_all_treaties(struct player *pplayer);
struct treaty_list *get_all_treaties();