[Freeciv-Dev] Re: example patch: [xy]_map_iterate
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, (continued)
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Jason Dorje Short, 2001/10/04
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Raimar Falke, 2001/10/04
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Jason Dorje Short, 2001/10/04
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Jason Dorje Short, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Jason Dorje Short, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Jason Dorje Short, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate, Raimar Falke, 2001/10/05
- [Freeciv-Dev] Re: example patch: [xy]_map_iterate,
Jason Dorje Short <=
|
|