Freeciv21
Develop your civilization from humble roots to a global empire
diplomats.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 #include "fc_types.h"
14 
15 bool diplomat_embassy(struct player *pplayer, struct unit *pdiplomat,
16  struct city *pcity, const struct action *paction);
17 bool diplomat_investigate(struct player *pplayer, struct unit *pdiplomat,
18  struct city *pcity, const struct action *paction);
19 void spy_send_sabotage_list(struct connection *pc, struct unit *pdiplomat,
20  struct city *pcity, const struct action *paction,
21  bool disturb_player);
22 bool spy_poison(struct player *pplayer, struct unit *pdiplomat,
23  struct city *pcity, const struct action *paction);
24 bool spy_spread_plague(struct player *act_player, struct unit *act_unit,
25  struct city *tgt_city, const struct action *paction);
26 bool spy_sabotage_unit(struct player *pplayer, struct unit *pdiplomat,
27  struct unit *pvictim, const struct action *paction);
28 bool diplomat_bribe(struct player *pplayer, struct unit *pdiplomat,
29  struct unit *pvictim, const struct action *paction);
30 bool spy_attack(struct player *act_player, struct unit *act_unit,
31  struct tile *tgt_tile, const struct action *paction);
32 int diplomats_unignored_tech_stealings(struct unit *pdiplomat,
33  struct city *pcity);
34 bool diplomat_get_tech(struct player *pplayer, struct unit *pdiplomat,
35  struct city *pcity, int technology,
36  const struct action *paction);
37 bool diplomat_incite(struct player *pplayer, struct unit *pdiplomat,
38  struct city *pcity, const struct action *paction);
39 bool diplomat_sabotage(struct player *pplayer, struct unit *pdiplomat,
40  struct city *pcity, Impr_type_id improvement,
41  const struct action *paction);
42 bool spy_steal_gold(struct player *act_player, struct unit *act_unit,
43  struct city *tgt_city, const struct action *paction);
44 bool spy_steal_some_maps(struct player *act_player, struct unit *act_unit,
45  struct city *tgt_city,
46  const struct action *paction);
47 bool spy_nuke_city(struct player *act_player, struct unit *act_unit,
48  struct city *tgt_city, const struct action *paction);
49 
50 int count_diplomats_on_tile(struct tile *ptile);
bool spy_steal_some_maps(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Steal part of another player's map.
Definition: diplomats.cpp:1559
int diplomats_unignored_tech_stealings(struct unit *pdiplomat, struct city *pcity)
Returns the amount of tech thefts from a city not ignored by the EFT_STEALINGS_IGNORE effect.
Definition: diplomats.cpp:764
bool spy_sabotage_unit(struct player *pplayer, struct unit *pdiplomat, struct unit *pvictim, const struct action *paction)
Sabotage an enemy unit.
Definition: diplomats.cpp:477
bool diplomat_embassy(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Establish an embassy.
Definition: diplomats.cpp:418
bool diplomat_get_tech(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, int technology, const struct action *paction)
Try to steal a technology from an enemy city.
Definition: diplomats.cpp:805
bool diplomat_sabotage(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, Impr_type_id improvement, const struct action *paction)
Sabotage enemy city's improvement or production.
Definition: diplomats.cpp:1170
bool diplomat_incite(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Incite a city to disaffect.
Definition: diplomats.cpp:1036
bool spy_steal_gold(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Steal gold from another player.
Definition: diplomats.cpp:1424
bool spy_spread_plague(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Spread a plague to the target city.
Definition: diplomats.cpp:167
bool spy_nuke_city(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Hide a suitcase nuke in a city and detonate it.
Definition: diplomats.cpp:1680
bool diplomat_investigate(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Investigate a city.
Definition: diplomats.cpp:271
void spy_send_sabotage_list(struct connection *pc, struct unit *pdiplomat, struct city *pcity, const struct action *paction, bool disturb_player)
Get list of improvements from city (for purposes of sabotage).
Definition: diplomats.cpp:361
bool diplomat_bribe(struct player *pplayer, struct unit *pdiplomat, struct unit *pvictim, const struct action *paction)
Bribe an enemy unit.
Definition: diplomats.cpp:561
bool spy_attack(struct player *act_player, struct unit *act_unit, struct tile *tgt_tile, const struct action *paction)
Diplomatic battle.
Definition: diplomats.cpp:725
bool spy_poison(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Poison a city's water supply.
Definition: diplomats.cpp:84
int count_diplomats_on_tile(struct tile *ptile)
Return number of diplomats on this square.
Definition: diplomats.cpp:2149
int Impr_type_id
Definition: fc_types.h:293
Definition: city.h:291
Definition: player.h:231
Definition: tile.h:42
Definition: unit.h:134