Freeciv-3.2: /fast/freeciv/nightly/S3_2/server/diplomats.h Source File

Freeciv-3.2

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#include "fc_types.h"
17
18bool diplomat_embassy(struct player *pplayer, struct unit *pdiplomat,
19 struct city *pcity, const struct action *paction);
20bool diplomat_investigate(struct player *pplayer, struct unit *pdiplomat,
21 struct city *pcity,
22 const struct action *paction);
23void spy_send_sabotage_list(struct connection *pc, struct unit *pdiplomat,
24 struct city *pcity,
25 const struct action *paction,
26 int request_kind);
27bool spy_poison(struct player *pplayer, struct unit *pdiplomat,
28 struct city *pcity, const struct action *paction);
29bool spy_spread_plague(struct player *act_player, struct unit *act_unit,
30 struct city *tgt_city, const struct action *paction);
31bool spy_sabotage_unit(struct player *pplayer, struct unit *pdiplomat,
32 struct unit *pvictim,
33 const struct action *paction);
34bool diplomat_bribe(struct player *pplayer, struct unit *pdiplomat,
35 struct unit *pvictim, const struct action *paction);
36bool spy_attack(struct player *act_player, struct unit *act_unit,
37 struct tile *tgt_tile, const struct action *paction);
38int diplomats_unignored_tech_stealings(struct unit *pdiplomat,
39 struct city *pcity);
40bool diplomat_get_tech(struct player *pplayer, struct unit *pdiplomat,
41 struct city *pcity, int technology,
42 const struct action *paction);
43bool diplomat_incite(struct player *pplayer, struct unit *pdiplomat,
44 struct city *pcity, const struct action *paction);
45bool diplomat_sabotage(struct player *pplayer, struct unit *pdiplomat,
46 struct city *pcity, Impr_type_id improvement,
47 const struct action *paction);
48bool spy_steal_gold(struct player *act_player, struct unit *act_unit,
49 struct city *tgt_city,
50 const struct action *paction);
51bool spy_steal_some_maps(struct player *act_player, struct unit *act_unit,
52 struct city *tgt_city,
53 const struct action *paction);
54bool spy_nuke_city(struct player *act_player, struct unit *act_unit,
55 struct city *tgt_city, const struct action *paction);
56bool spy_escape(struct player *pplayer,
57 struct unit *actor_unit,
58 struct city *target_city,
59 struct tile *target_tile,
60 const struct action *paction);
61
62int count_diplomats_on_tile(struct tile *ptile);
63
64#endif /* FC__DIPLOMATS_H */
incite_cost
char * incite_cost
Definition comments.c:74
actor_unit
struct unit * actor_unit
Definition dialogs_g.h:55
target_tile
struct unit struct city struct unit struct tile * target_tile
Definition dialogs_g.h:57
target_city
struct unit struct city * target_city
Definition dialogs_g.h:56
spy_escape
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:2343
spy_steal_some_maps
bool spy_steal_some_maps(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:1698
diplomats_unignored_tech_stealings
int diplomats_unignored_tech_stealings(struct unit *pdiplomat, struct city *pcity)
Definition diplomats.c:850
spy_sabotage_unit
bool spy_sabotage_unit(struct player *pplayer, struct unit *pdiplomat, struct unit *pvictim, const struct action *paction)
Definition diplomats.c:548
diplomat_embassy
bool diplomat_embassy(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:483
spy_send_sabotage_list
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
diplomat_get_tech
bool diplomat_get_tech(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, int technology, const struct action *paction)
Definition diplomats.c:891
diplomat_sabotage
bool diplomat_sabotage(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, Impr_type_id improvement, const struct action *paction)
Definition diplomats.c:1284
diplomat_incite
bool diplomat_incite(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:1135
spy_steal_gold
bool spy_steal_gold(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:1556
spy_spread_plague
bool spy_spread_plague(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:214
spy_nuke_city
bool spy_nuke_city(struct player *act_player, struct unit *act_unit, struct city *tgt_city, const struct action *paction)
Definition diplomats.c:1834
diplomat_investigate
bool diplomat_investigate(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:324
diplomat_bribe
bool diplomat_bribe(struct player *pplayer, struct unit *pdiplomat, struct unit *pvictim, const struct action *paction)
Definition diplomats.c:643
spy_attack
bool spy_attack(struct player *act_player, struct unit *act_unit, struct tile *tgt_tile, const struct action *paction)
Definition diplomats.c:807
spy_poison
bool spy_poison(struct player *pplayer, struct unit *pdiplomat, struct city *pcity, const struct action *paction)
Definition diplomats.c:97
count_diplomats_on_tile
int count_diplomats_on_tile(struct tile *ptile)
Definition diplomats.c:2374
fc_types.h
Impr_type_id
int Impr_type_id
Definition fc_types.h:379
action
Definition actions.h:360
city
Definition city.h:320
connection
Definition connection.h:136
player
Definition player.h:247
tile
Definition tile.h:50
unit
Definition unit.h:138