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: Mon, 14 Apr 2003 20:01:24 +0200

On Mon, Apr 14, 2003 at 11:05:28AM -0500, Jason Dorje Short wrote:
> Raimar Falke wrote:
> >On Sun, Apr 13, 2003 at 05:37:59PM -0500, Jason Dorje Short wrote:
> >
> >>>>This is a clever(ish) way to define an operation on "native" 
> >>>>coordinates that really uses map coordinates.  Unfortunately, in 
> >>>>addition to 
> >>>
> >>>>being extremely inelegant
> >>>
> >>>I disagree. It is one place less which is topology dependent.
> >>
> >>Actually it is one more place which is topology dependent - since this 
> >>(DIR_DX/DIR_DY) would not otherwise be a topology-dependent operation. 
> >>The only places that care whether the topology is isometric are 
> >>native_to_map_pos, map_to_native_pos, and the mapview window-clipping 
> >>function.
> 
> As a side note, doing DIR_DX/DIR_DY in native coordinates is impossible 
> since the vectors are not constant for all positions.

Yes I have also found this out. So it isn't DIR_D[XY] but MAPSTEP. And
the DIRSTEP users have to be audited.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  reality.sys corrupt. Reboot Universe? (y,n,q)



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