Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: example patch: [xy]_map_iterate
Home

[Freeciv-Dev] Re: example patch: [xy]_map_iterate

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: example patch: [xy]_map_iterate
From: Jason Dorje Short <vze2zq63@xxxxxxxxxxx>
Date: Fri, 05 Oct 2001 15:40:00 -0400
Reply-to: jdorje@xxxxxxxxxxxx

Raimar Falke wrote:
> 
> On Fri, Oct 05, 2001 at 02:04:56PM -0400, Jason Dorje Short wrote:
> > Raimar Falke wrote:

> > Or perhaps this topology data should be stored as two strings: one
> > indicating the main topology type and the other indicating parameters.
> > These can then be parsed by the appropriate function.  The above two
> > then coupd be stored as:
> >
> > "rectangular" "nowrap nowrap 5 5"
> > "iso-rectangular" "wrap nowrap 6 5"
> 
> Strings may not be necessary but I would like a
> 
> struct civ_map {
>   struct {
>     int size_x,size_y,is_isometric,wrap_x,wrap_y;
>   } topology;
>   int xsize, ysize; // the rectangle size
>   int seed;

Two things:

I was talking about the strings for the savefile (which seems to use all
strings); for in-game use a structure would be desired.

Rather than wrap_x/wrap_y it should be wrap_ns/wrap_ew since this
(north-south, east-west) makes sense under isometric topologies as well.

jason


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