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

                 Summary: Path finding cleanup
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: dimanche 31.10.2010 à 02:28
                Category: agents
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: pepeto
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.3.0

    _______________________________________________________

Details:

Path finding cleanup. Step to patch #1303.

----
FEATURES:
* Added int pf_map_move_cost(struct pf_map *, struct tile *).
* Direction (-1) is a macro: PF_DIR_NONE.
* Use minimal size for the nodes (e.g. pf_normal_node size was 20 bytes, it
is now 16 bytes).
* Changed when NS_PROCESSED is assigned, and simplified tests to know if a
tile reachable. (Now, the node status is NS_PROCESSED or NS_WAITING, the tile
iterator test is not needed anymore.)
* pf_danger_map_iterate_until() and pf_fuel_map_iterate_until() are slightly
improved.
* Merged function comments from "path_finding.h" to "path_finding.c"
* Full review of the documentation. Numerous comments added about how it
works.

----
NAME CHANGES:
* Macros pf_map_iterate_* and pf_map_iterate_*_end renamed to
pf_map_*_iterate and pf_map_*_iterate_end to be closer to the most iterating
macros.
* pf_map_get_*() renamed to pf_map_*().
* pf_map_iterator_get_*() renamed to pf_map_iter_*().
* pf_path_get_last_position() renamed to pf_path_last_position().
* pf_city_map_get_move_cost() renamed to pf_city_map_move_cost().




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: dimanche 31.10.2010 à 02:28  Name: 0001-Path-finding-cleanup.patch 
Size: 206 ko   By: pepeto

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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