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]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3936) introducing native coordinates
From: Jason Dorje Short <vze49r5w@xxxxxxxxxxx>
Date: Mon, 14 Apr 2003 11:05:28 -0500
Reply-to: jdorje@xxxxxxxxxxxxxxxxxxxxx

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.

jason



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