/********************************************************************** Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ***********************************************************************/ #ifndef FC__AIDIPLOMAT_H #define FC__AIDIPLOMAT_H struct player; struct unit; #define real_distance_to_target(punit) \ real_map_distance(punit->x, punit->y, \ punit->goto_dest_x, \ punit->goto_dest_y) struct city *find_city_to_diplomat(struct player *pplayer, int x, int y, bool foul); void ai_manage_diplomat(struct player *pplayer, struct unit *punit); void ai_choose_diplomat_defensive(struct player *pplayer, struct city *pcity, struct ai_choice *choice, int def); void ai_choose_diplomat_offensive(struct player *pplayer, struct city *pcity, struct ai_choice *choice); #endif /* FC__AIDIPLOMAT_H */