Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: topology RFC (again)
Home

[Freeciv-Dev] Re: topology RFC (again)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: jdorje@xxxxxxxxxxxxxxxxxxxxx, freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: topology RFC (again)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Oct 2001 10:27:53 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Mon, Oct 29, 2001 at 10:43:28PM -0500, Ross W. Wetmore wrote:
> At 10:35 AM 01/10/29 +0100, Raimar Falke wrote:
> >On Sun, Oct 28, 2001 at 03:10:58PM -0400, Ross W. Wetmore wrote:
> >> [...]
> >> >*** 1c.  Current Operator Functions
> >> >
> >> >The following functions are necessary to do operations and checks on map
> >> >positions.  All should work under the arbitrary topology discussed
> >> >above.
> >> 
> >> It is worth stressing that these are functions that apply to "map"
> positions 
> >> or gaming coordinates. 
> >> 
> >> It is in general meaningless to feed them arbitrary coordinates, GUI or 
> >> citymap coordinates for instance. 
> >
> >> There may be corresponding functions which do take GUI or citymap
> >> coordinates
> >
> >There will no special citymap functions. All citymap can and should be
> >transformed to map positions.
> 
> Raimar, citymap coordinates run from [0:CITY_MAP_SIZE-1][0:CITY_MAP_SIZE-1]
> and lots of code uses these.
> 
> What do you think the citymap macros in city.h are doing? 

My fault I meant: there will be no
is_real_city_map_position(pcity,x,y) and no
normalize_city_map_position(pcity,x,y),... Only the transformation
methods and a test method of valid citymap position is needed.

> Are they to all go? or get converted to use map coordiantes?

They will stay until a better approach turns up.

> If you ever decide that citymaps should be elliptical, you will
> probably wish you had more of the infrastructure and less 
> optimization :-).

Just varying the radius would cause a lot of changes.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  A supercomputer is a computer running an endless loop in just a second


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