Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2003:
[Freeciv-Dev] Re: (PR#3936) introducing native coordinates
Home

[Freeciv-Dev] Re: (PR#3936) introducing native coordinates

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Cc: jdorje@xxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3936) introducing native coordinates
From: Ross Wetmore <rwetmore@xxxxxxxxxxxx>
Date: Wed, 16 Apr 2003 16:15:12 -0400


Raimar Falke wrote:
On Sat, Apr 12, 2003 at 08:24:06AM +0200, Raimar Falke wrote:

but square_iterate and other local functions cannot be implemented
in these coordinates

Why not? In the worst case I calculate all the vectors by
hand and hardcode them. Something like:


Actually there is a "portable" way to do square_iterate: using
MAPSTEP.

At the start you go radius times NW.

At the body you do a STEP W. This radius times. Than a STEP S. Than
radius steps E and so on.

        Raimar

Doesn't work on a true isometric map. A square figure oriented along
the natural isometric axes is not a constant distance from the centre.

In isometric land the prescription is go W then NE radius steps ...
This is just the map coordinate square rotated.

Besides, this complicates MAPSTEP with global topology stuff when it
is really just a local operation. Mixing things up is never going to
simplify life.

Try again ... :-)

Cheers,
RossW
=====



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