URL:
  <http://gna.org/patch/?4837>

                 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

    _______________________________________________________

Details:

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
test.

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

<http://gna.org/patch/download.php?file_id=21119>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4837>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to