Freeciv-3.3
Loading...
Searching...
No Matches
diplomats.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__DIPLOMATS_H
14#define FC__DIPLOMATS_H
15
16/* common */
17#include "fc_types.h"
18
19bool diplomat_embassy(struct player *pplayer, struct unit *pdiplomat,
20 struct city *pcity, const struct action *paction);
21bool diplomat_investigate(struct player *pplayer, struct unit *pdiplomat,
22 struct city *pcity,
23 const struct action *paction);
25 struct city *pcity,
26 const struct action *paction,
27 int request_kind);
28bool spy_poison(struct player *pplayer, struct unit *pdiplomat,
29 struct city *pcity, const struct action *paction);
30bool spy_spread_plague(struct player *act_player, struct unit *act_unit,
31 struct city *tgt_city, const struct action *paction);
32bool spy_sabotage_unit(struct player *pplayer, struct unit *pdiplomat,
33 struct unit *pvictim,
34 const struct action *paction);
35bool diplomat_bribe_unit(struct player *pplayer, struct unit *pdiplomat,
36 struct unit *pvictim, const struct action *paction);
37bool diplomat_bribe_stack(struct player *pplayer, struct unit *pdiplomat,
38 struct tile *pvictim, const struct action *paction);
39bool spy_attack(struct player *act_player, struct unit *act_unit,
40 struct tile *tgt_tile, const struct action *paction);
42 struct city *pcity);
43bool diplomat_get_tech(struct player *pplayer, struct unit *pdiplomat,
44 struct city *pcity, int technology,
45 const struct action *paction);
46bool diplomat_incite(struct player *pplayer, struct unit *pdiplomat,
47 struct city *pcity, const struct action *paction);
48bool diplomat_sabotage(struct player *pplayer, struct unit *pdiplomat,
49 struct city *pcity, Impr_type_id improvement,
50 const struct action *paction);
51bool spy_steal_gold(struct player *act_player, struct unit *act_unit,
52 struct city *tgt_city,
53 const struct action *paction);
55 struct city *tgt_city,
56 const struct action *paction);
57bool spy_nuke_city(struct player *act_player, struct unit *act_unit,
58 struct city *tgt_city, const struct action *paction);
59bool spy_escape(struct player *pplayer,
60 struct unit *actor_unit,
61 struct city *target_city,
62 struct tile *target_tile,
63 const struct action *paction);
64
65int count_diplomats_on_tile(struct tile *ptile);
66
67#endif /* FC__DIPLOMATS_H */
char * incite_cost
Definition comments.c:76
struct unit * actor_unit
Definition dialogs_g.h:55
struct unit struct city struct unit struct tile * target_tile
Definition dialogs_g.h:57
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
Definition dialogs_g.h:78
struct unit struct city * target_city
Definition dialogs_g.h:56
bool spy_escape(struct player *pplayer, struct unit *actor_unit, struct city *target_city, struct tile *target_tile, const struct action *paction)
Definition diplomats.c:2468
bool spy_steal_some_maps(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:1818
bool diplomat_bribe_unit(struct player *pplayer, struct unit *pdiplomat, struct unit *pvictim, const struct action *paction)
Definition diplomats.c:644
int diplomats_unignored_tech_stealings(struct unit *pdiplomat, struct city *pcity)
Definition diplomats.c:970
bool spy_sabotage_unit(struct player *pplayer, struct unit *pdiplomat, struct unit *pvictim, const struct action *paction)
Definition diplomats.c:549
bool diplomat_embassy(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:484
bool diplomat_bribe_stack(struct player *pplayer, struct unit *pdiplomat, struct tile *pvictim, const struct action *paction)
Definition diplomats.c:812
void spy_send_sabotage_list(struct connection *pc, struct unit *pdiplomat, struct city *pcity, const struct action *paction, int request_kind)
Definition diplomats.c:429
bool diplomat_get_tech(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, int technology, const struct action *paction)
Definition diplomats.c:1011
bool diplomat_sabotage(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, Impr_type_id improvement, const struct action *paction)
Definition diplomats.c:1404
bool diplomat_incite(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:1255
bool spy_steal_gold(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:1676
bool spy_spread_plague(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:214
bool spy_nuke_city(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:1956
bool diplomat_investigate(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:324
bool spy_attack(struct player *act_player, struct unit *act_unit, struct tile *tgt_tile, const struct action *paction)
Definition diplomats.c:927
bool spy_poison(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:97
int count_diplomats_on_tile(struct tile *ptile)
Definition diplomats.c:2499
int Impr_type_id
Definition fc_types.h:235
Definition city.h:317
Definition tile.h:50
Definition unit.h:140