Summary: Use dai_can_requirement_be_met_in_city in
                 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



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



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to