Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
Re: [Freeciv-Dev] continent wonders
Home

Re: [Freeciv-Dev] continent wonders

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: permath@xxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] continent wonders
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 22 May 1999 14:05:22 +1000 (EST)

Per Mathisen wrote:

> However, to enable continent-wide effects, I will also need a
> continent-wide struct with these modifiers, ie each continent needs its
> own set of variables describing modifiers applying to the continent. Is
> there any good way to implement this? Does freeciv really have any idea
> about continents?

The server has a good idea about continents; the 'continent' field
in a 'struct tile' says which continent each square belong to.  
It would be reasonable to have a continent struct and an array of
such, indexed by the tile.continent values.  

(mapgen actually knows some more about continents, with 
   static struct isledata islands[MAP_NCONT];
I'm not sure if it would be sensible to integrate other 
information with that, or to keep logically separate things
(mapgen vs other) separate.)

The client doesn't know so much, because that would be giving
away information the player shouldn't know.  The client calculates
its own continent numbers, but they may be wrong, and the continent
numbers won't match those on the server.  But I expect for your 
purposes server-side is sufficient?

-- David

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