URL:
<http://gna.org/patch/?4991>
Summary: Use dai_can_requirement_be_met_in_city in
dai_wants_defender_against
Project: Freeciv
Submitted by: persia
Submitted on: Sat 26 Jul 2014 07:56:38 PM JST
Category: ai
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: persia
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0
_______________________________________________________
Details:
Inspired by discussion in patch #4988 , I took a look at some other ways the
AI is currently using requirement vector iteration. The calculations in
dai_wants_defender_versus() seem to have been entirely rewritten in updates
and patches, but don't use the same class of calling conventions used by other
similar iterators. The attached patch updates it to match other iterators
(and use is_req_active(), rather than a separate hardcoded implementation),
and uses dai_can_requirement_be_met_in_city() to determine if a given
requirement is impossible to get.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 26 Jul 2014 07:56:38 PM JST Name:
use-can_requirement_be_met-for-dai_wants_defender_against.patch Size: 3kB
By: persia
<http://gna.org/patch/download.php?file_id=21564>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?4991>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev