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

                 Summary: Pathfinding refactoring
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: mer. 02 juil. 2014 15:24:47 CEST
                Category: ai
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: pepeto
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0

    _______________________________________________________

Details:

* can_invade() is now hard-coded ;
* better handling of cached values when the tile is not known (notably at
server side without omniscience) ;
* better action handling, including attacks, diplomat actions and trade route
establishing ;
* cache values previously calculated in pf_is_ok_move_tile() ;
* handle correctly the case we would want to ignore start tile (then the
former behavior is restored) ;
* handle correctly the case the unit is transported initially and would not
return to transported (if it has orders) if returning at start tile.

It speeds up the algorithm considerably. Amphibious moves are not perfectly
handled, but it wasn't the case before (not a regression).




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: mer. 02 juil. 2014 15:24:47 CEST  Name: pf_refactoring.patch.gz  Size:
11 ko   By: pepeto

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to