Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9181) [freeciv #9176] Re: Freeciv algorythm
Home

[Freeciv-Dev] (PR#9181) [freeciv #9176] Re: Freeciv algorythm

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9181) [freeciv #9176] Re: Freeciv algorythm
From: "Pavel Bogdan" <swromania21@xxxxxxxxx>
Date: Mon, 5 Jul 2004 00:02:34 -0700
Reply-to: rt@xxxxxxxxxxx

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



Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx> wrote:



On Sun, Jul 04, 2004 at 03:16:42AM -0700, Per I. Mathisen wrote:
> 
> This is not the right way to go about it. Currently we have continent
> numbers for all continents, set when the map is created. We should do
> the same for all oceans, so that we can check if city A lies by the same
> ocean as city B just by reading the ocean number. The changes should go
> in mapgen.c

As I might have mentioned before, ocean numbers should be negative.

-mike




Ok. So you have numbers for all oceans and continents, in order to see which 
city is near which ocean an on which continent, right?  I guess you put a new 
variable in the "struct city...." which sets this thing...   Then I believe 
it's very easy to set the "should_build_navy" variable, so you don't need the 
algorythm I gave you... :)    Please tell me a way to solve the other issues I 
posted in the previous message, so I could compile(and test) the game myself.   
Now you could give some other "algorythm-like" problem and I may be able to 
help you(and any useful info regarding it). I will post a solution when I find 
it, so don't wait too much for my e-mail response... :]


                
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!


Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx> wrote:




On Sun, Jul 04, 2004 at 03:16:42AM -0700, Per I. Mathisen wrote:
>
> This is not the right way to go about it. Currently we have continent
> numbers for all continents, set when the map is created. We should do
> the same for all oceans, so that we can check if city A lies by the same
> ocean as city B just by reading the ocean number. The changes should go
> in mapgen.c

As I might have mentioned before, ocean numbers should be negative.

-mike



Ok. So you have numbers for all oceans and continents, in order to see which city is near which ocean an on which continent, right?  I guess you put a new variable in the "struct city...." which sets this thing...   Then I believe it's very easy to set the "should_build_navy" variable, so you don't need the algorythm I gave you... :)    Please tell me a way to solve the other issues I posted in the previous message, so I could compile(and test) the game myself.   Now you could give some other "algorythm-like" problem and I may be able to help you(and any useful info regarding it). I will post a solution when I find it, so don't wait too much for my e-mail response... :]


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9181) [freeciv #9176] Re: Freeciv algorythm, Pavel Bogdan <=