Follow-up Comment #3, patch #1033 (project wesnoth):

See also :
- distance_between(), tiles_adjacent() and get_adjacent_tiles() in
maputils.?pp
- get_direction() in map.?pp
- get_tiles() in map_manip.?pp
which seels similar to silvertree (except that, indeed, get_tiles is less
nicely written and placed than silvertree get_tiles_in_radius)

There is also a wesnoth get_tiles_radius() in pathfind.?pp, but it has a
strange implementation used for some WML filter feature (not sure what, ask
Sapient if you want more info on this one)

Btw, not sure about the numbers (depends how hexes-surface grows, the mean
number of units and the cost of searching units at a location) but maybe
parse the units list and check distance is more efficient (and probably
simpler)?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to