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

                 Summary: Use terrain_class rather than move_type in AI
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Fri 27 Jun 2014 05:15:07 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:

The AI currently uses move_type selectors when selecting attackers,
bodyguards, hunters, and settlers.  The attached patch replaces these
selectors with ones based on the terrain_class, and confirms the unit can move
on at least some terrain in that class (using the adv.land_move and
adv.sea_move caches).

This doesn't actually fix any of the core nativity issues, but it does mean
that UMT_BOTH units that otherwise meet the selection criteria are more likely
to be considered acceptable for the role, so in rulesets with limited nativity
extensions (undersea tunnels, tanks that can drive over lakes, riverboats,
cantilevered bridges, etc.), the AI will continue to be able to select
suitable units for these roles.

All of this code ought be replaced in the future with a real solution to the
nativity problems inherent in these constructions, but this should improve
things in the short term.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 27 Jun 2014 05:15:07 AM JST  Name:
use-terrain_class-rather-than-move_type-in-AI.patch  Size: 12kB   By: persia

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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