Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: Borders?
Home

[Freeciv-Dev] Re: Borders?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Adam Gregory <Adammgregory@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Borders?
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Nov 2001 11:36:08 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Sun, Nov 25, 2001 at 06:52:05PM -0300, Adam Gregory wrote:
> Hi everyone! I'd like to help implement borders for the countries in 
> freeciv (assuming this isn't already being taken care of). This is my 
> first time contributing to a free software project, so any and all support 
> would be most appreciated. I have a few questions:
> How should the borders be calculated, does anyone have any ideas for the 
> algorithm?
> Should the borders be coloured like in Alpha Centauri, and if so where 
> would the national colours be found?
> Is this already done (I saw borders.jpg in the incoming FTP)?
> 
> My own thoughts on calculating the borders would be that each nation has a 
> particular level of claim on each square, which is based on its proximity 
> to cities (within a certain range, say 10 squares), and the nation with 
> the highest claim to the square owns it. I have an idea of how to do this, 
> but it's difficult for me to put into words (I tried, it wasn't pretty :)).
> 
> I've familiarised myself with the hacker's guide, and I'm starting to try 
> to write something for borders into the code now, but I'd really 
> appreciate some feedback. Sorry about my newbieness.

There was a patch which does this. Please search the mailing list
archive. AFAI remember it had some problems with coastal cities. Such
cities couldn't access all tiles that they can access without the
patch.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Premature optimization is the root of all evil."
    -- D. E. Knuth in "Structured Programming with go to Statements"


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