Summary: Use pathfinding to identify missile carrier risk
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Mon 23 Jun 2014 09:35:09 AM 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



When a missile-carrying hunter is considering a victim, there is a check to
see whether the hunter feels threatened, which makes assumptions about
nativity (and seems like it might only work for submarines in a
simple-nativity ruleset).  The attached patch replaces this with a pathfinding

During implementation I noticed that all reverse pathfinding fails to use the
move_cost callbacks in pf_tools, which causes them to be subtly wrong for
complex-nativity: if subjecting this to careful testing with constucted
scenarios, it is important that the potential victim be able to natively move
to the tile containing the missile carrier, rather than just being able to
attack non-native tiles.


File Attachments:

Date: Mon 23 Jun 2014 09:35:09 AM JST  Name:
Use-pathfinding-to-identify-missile-carrier-risk.patch  Size: 3kB   By: persia



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to