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

                 Summary: City warmap alternative
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: Tuesday 07/28/2009 at 11:36
                Category: general
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

In ai/advmilitary.c, the warmap is deployed for a city. I added some
equivalent named "struct pf_city_map" which works by unit_class when warmap
worked with move types. The city map is a vector of pf_map (which are only
created and deployed when needed). The public interface grants 3 functions:
* struct pf_city_map pf_city_map_new(const struct city pcity);
* void pf_city_map_destroy(struct pf_city_map *pfcm);
* int pf_city_map_get_move_cost(struct pf_city_map pfcm, const struct
unit_class punitclass, struct tile *ptile);




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tuesday 07/28/2009 at 11:36  Name: trunk_city_warmap_alternative.diff 
Size: 7kB   By: pepeto

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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