Update of patch #1785 (project freeciv):
Summary: [Metaticket] cleanup usage of ai files by the
server => [Metaticket] cleanup usage of ai header files by the server
_______________________________________________________
Follow-up Comment #2:
Cleanup the usage of AI header files by the server. If possible the include
command is removed else the dependency is marked. See below for the remaining
header files:
server/advisors/advbuilding.c:#include "aitools.h" /* struct definitions */
server/advisors/advbuilding.c:#include "defaultai.h" /* def_ai_city_data()
*/
server/advisors/advdata.c:#include "advdiplomacy.h" /*
ai_diplomacy_begin_new_phase() */
server/advisors/advdata.c:#include "aihand.h" /* ai_best_government() */
server/advisors/advdata.c:#include "aitools.h" /* is_player_dangerous(),
ai_wants_no_science() */
server/advisors/advdata.c:#include "aiunit.h" /* unit_data in
ai_data_phase_init(() */
server/advisors/advdata.c:#include "defaultai.h" /* def_ai_unit_data() to get
unit_data */
server/advisors/advgoto.c:#include "aiunit.h" /* enemies_at() */
server/advisors/autoexplorer.c:#include "aitools.h" /* struct risk_cost,
ai_fill_unit_param(), ai_unit_goto_constrained() */
server/advisors/autosettlers.c:#include "aisettler.h" /* struct cityresult
*/
server/advisors/autosettlers.c:#include "aitools.h" /* ai_unit_new_role() */
server/advisors/autosettlers.c:#include "aiunit.h" /* unit_data in
ai_manage_settler() */
server/advisors/autosettlers.c:#include "defaultai.h" /* def_ai_unit_data()
to get unit_data */
server/citytools.c:#include "aiunit.h" /* could_unit_move_to_tile() */
server/cityturn.c:#include "aitools.h" /* ai_advisor_choose_building() */
server/srv_log.c:#include "aicity.h" /* struct definitions */
server/srv_log.c:#include "aiunit.h" /* struct definitions */
server/srv_log.c:#include "defaultai.h" /* def_ai_city_data(),
def_ai_unit_data() */
server/unithand.c:#include "aitools.h" /* ai_unit_new_role() */
server/unittools.c:#include "aitools.h" /* ai_unit_new_role() */
Only the following include should be used at the end:
server/aiiface.c:#include "defaultai.h"
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1785>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev