Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: map tiles in city dialog drawn in wrong order
Home

[Freeciv-Dev] Re: map tiles in city dialog drawn in wrong order

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: Gaute B Strokkenes <gs234@xxxxxxxxx>, jdorje@xxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: map tiles in city dialog drawn in wrong order (PR#1044)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Nov 2001 14:39:02 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Tue, Nov 06, 2001 at 09:25:24AM -0500, Ross W. Wetmore wrote:
> 
> This is actually a good example of why the core game coordinate
> system should not be generalized to try and include different
> environments like the GUI. These problems will continue to crop
> up until you have a clean separation between the two with an
> explicit transformation to move from one to the other in either
> direction. 
> 
> The real solution may not be to hardcode the GUI loops, but to 
> come up with an appropriate coordinate system/iterators for
> GUI operations that specifically takes such things into account.
> One can then loop in GUI order over GUI coordinates to manage
> such GUI effects and side-effects properly.
> 
> When such a system is created with its iterator interfaces, then 
> document the subtleties that are part of the macro iterface
> clearly to prevent future screwups from misuse.

But doesn't such a iterate-from-back-to-front macro depend on the
is_isometric flag?

        Raimar

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


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