Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9818) Inland lakes and borders
Home

[Freeciv-Dev] Re: (PR#9818) Inland lakes and borders

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9818) Inland lakes and borders
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Thu, 26 Aug 2004 14:32:21 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9818 >

On Thu, 26 Aug 2004, Jason Short wrote:

> >>Now that we have ocean numbers it seems natural that the next step we
> >>should code are inland lakes in borders code. 
> > 
> > Please give us some background.  Why should border code for inland lakes 
> > be different from border code for oceans?  Do ocean tiles get assigned at 
> > all?
> 
> The current rule is "any ocean tile bordered by 5 tiles from the same 
> continent is owned by that continent".
> 
> The code is ugly and not particularly accurate.  The idea is that inland 
> lakes should be owned.  But if the lake is large enough this doesn't 
> work.  I've tried coming up with something better (something recursive 
> at least) but with no success.  However if we knew a body of water only 
> bordered one continent then it would be easy enough to assign those 
> tiles to that continent.

I'd say the rule should be: if a lake's shores are all owned by the same 
player, the lake is owned too.  But it might be hard to implement.




[Prev in Thread] Current Thread [Next in Thread]