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

                 Summary: API: Add Tile,Player:units_iterate(), and
Player:cities_iterate()
                 Project: Freeciv
            Submitted by: englabenny
            Submitted on: fredag 2010-04-09 den 09:46
                Category: None
                Priority: 5 - Normal
                  Status: Need Info
                 Privacy: Public
             Assigned to: englabenny
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.3.0

    _______________________________________________________

Details:

Adding genlist_link (opaquely) to the Scripting API allows us to iterate
city/unit lists efficiently. An index-based iteration of linked lists would
be O(n**2). Notice the iteration *in this patch* is safe, since we make a
full copy of the list (on the lua side) before the user iterates over the
copy.

Need info: decide which way to go with tolua_outside



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: fredag 2010-04-09 den 09:46  Name:
2010040905-API-Add-Tile-Player-units_iterate-and-Player-c.patch  Size: 9 kB  
By: englabenny

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Meddelandet skickades via/av Gna!
  http://gna.org/


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

Reply via email to