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: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3936) introducing native coordinates
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Sat, 12 Apr 2003 14:44:22 +0200

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

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  One nuclear bomb can ruin your whole day.



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