Freeciv-3.1
Loading...
Searching...
No Matches
diplhand.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__DIPLHAND_H
14#define FC__DIPLHAND_H
15
16/* common */
17#include "fc_types.h"
18
19/* server */
20#include <hand_gen.h> /* <> so looked from the build directory first. */
21
22struct Treaty;
23struct packet_diplomacy_info;
24struct connection;
25
26#define SPECLIST_TAG treaty
27#define SPECLIST_TYPE struct Treaty
28#include "speclist.h"
29
30#define treaty_list_iterate(list, p) \
31 TYPED_LIST_ITERATE(struct Treaty, list, p)
32#define treaty_list_iterate_end LIST_ITERATE_END
33
34void establish_embassy(struct player *pplayer, struct player *aplayer);
35
36void diplhand_init(void);
37void diplhand_free(void);
38void free_treaties(void);
39
40struct Treaty *find_treaty(struct player *plr0, struct player *plr1);
41
42void send_diplomatic_meetings(struct connection *dest);
43void cancel_all_meetings(struct player *pplayer);
44void reject_all_treaties(struct player *pplayer);
45
46struct treaty_list *get_all_treaties(void);
47
48void set_diplstate_type(struct player_diplstate *state1,
49 struct player_diplstate *state2,
50 enum diplstate_type type);
51
52#endif /* FC__DIPLHAND_H */
void diplhand_free(void)
Definition diplhand.c:96
void establish_embassy(struct player *pplayer, struct player *aplayer)
Definition diplhand.c:724
void send_diplomatic_meetings(struct connection *dest)
Definition diplhand.c:912
void diplhand_init(void)
Definition diplhand.c:88
struct treaty_list * get_all_treaties(void)
Definition diplhand.c:986
void free_treaties(void)
Definition diplhand.c:107
void reject_all_treaties(struct player *pplayer)
Definition diplhand.c:962
void set_diplstate_type(struct player_diplstate *state1, struct player_diplstate *state2, enum diplstate_type type)
Definition diplhand.c:159
void cancel_all_meetings(struct player *pplayer)
Definition diplhand.c:950
struct Treaty * find_treaty(struct player *plr0, struct player *plr1)
Definition diplhand.c:121
GType type
Definition repodlgs.c:1312
struct player * plr0
Definition diptreaty.h:77
struct player * plr1
Definition diptreaty.h:77