Lua: vision checking and editing
Attached patch adds Tile:known(player) and Tile:seen(player)
From the requested features this leaves only unit visibility check out. One can of course check if unit's tile is seen, but that doesn't tell if unit is within a transport, city, or hiding base. That should be a new ticket.
Reply To cazfi
From the requested features this leaves only unit visibility check out. One can of course check if unit's tile is seen, but that doesn't tell if unit is within a transport, city, or hiding base. That should be a new ticket.
Sub-task of #42501 but has a separate meaning, in commercial games we can get territory map from a hut (see http://forum.freeciv.org/f/viewtopic.php?f=13&t=91188).
Common API: int (Unit_Type).vision_radius_sq
Client API: bool (Tile).is_seen (known can be checked by .terrain ~= nil but may et a special method)
Server API: