/********************************************************************** Freeciv - Copyright (C) 2002 - The Freeciv Team 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__AISETTLER_H #define FC__AISETTLER_H struct citytile { int food, shield, trade; }; struct cityresult { int x, y; /* coords */ int total; /* total value of position */ int other_x, other_y; /* coords to best other tile */ int o_x, o_y; /* city-relative coords for other tile */ int city_center; /* value of city center */ int best_other; /* value of best other tile */ int remaining; /* value of all other tiles */ struct citytile tile[CITY_MAP_SIZE][CITY_MAP_SIZE]; }; void find_best_city_placement(struct unit *punit, struct cityresult *best); void ai_settler_init(struct player *pplayer); #endif