Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: Topologies and coordinates
Home

[Freeciv-Dev] Re: Topologies and coordinates

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Topologies and coordinates
From: Jason Dorje Short <vze2zq63@xxxxxxxxxxx>
Date: Mon, 08 Oct 2001 12:10:35 -0400
Reply-to: jdorje@xxxxxxxxxxxx

Raimar Falke wrote:
> 
> On Mon, Oct 08, 2001 at 09:54:56AM +0200, Reinier Post wrote:
> > On Sun, Oct 07, 2001 at 10:02:08PM -0400, Jason Dorje Short wrote:
> >
> > > > At the least, the gui needs to know whether the north pole is at y=0
> > > > or at x-y=K
> > >
> > > Why?
> > >
> > > What if a torus map chooses not to have a north pole?
> >
> > The only thing that needs a north pole is the terrain generator
> > (to determine the "temperature").
> 
> The "poles" are also used for wrapping at least for the current and
> the discussed isometric map.

Sort of.  The client must know the topology information [1], but
shouldn't need to make use of the topology function
distance_from_north_pole().


[1] Basically your proposed struct:

struct topology {
  int xsize, ysize;
  int wraps_ns, wraps_ew;
  int isometric;
}

Which will work for the 8 basic topologies we've been discussing (hence
the 3 boolean values).

jason


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