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



* 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



Reply to this item at:


  Message posté via/par Gna!

Freeciv-dev mailing list

Reply via email to