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

[Freeciv-Dev] Re: RFC: 8-topology system

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: RFC: 8-topology system
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Oct 2001 23:36:32 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Tue, Oct 16, 2001 at 01:42:48PM -0400, Jason Dorje Short wrote:
> Here is a (hopefully) full explanation of how I propose to implement an
> 8-topology system.  The eight topologies include flat vs isometric,
> north-south wrapping vs no wrapping, and east-west wrapping vs no
> wrapping.  We also allow the possibility of adding non-rectangular maps
> in the future.  Any of these 8 topologies will work under my proposed
> general topological system (an earlier post), either with or without the
> linear-combination-of-vectors (LCOV) extension (LCOV allows
> wrap_map_pos()).
> 
> The current code defines only map.xsize and map.ysize (henceforth
> referred to as xsize and ysize).  These currently define the topology
> itself.  Under the new system, they will only define the bounding
> rectangle for the topology.  The topology itself will be referred to by
> another set of values (declared either within the map structure or as
> part of a separate topology structure):
> 
> - shape: 0 for rectangle; no other valid values yet.

1 for a ellipse

I think that another shape is good. This may be of no real use but it
allows use to test the code. And a non-isometric ellipse has the
semantics of most north <=> y=0. Also such an ellipse will also have
non-real tiles in the rectangular xsize*ysize.

So based on the xsize and ysize an ellipse should look like:

                              #
                    # # # # # # # # # # #
              # # # # # # # # # # # # # # # # #
            # # # # # # # # # # # # # # # # # # #
          # # # # # # # # # # # # # # # # # # # # #
        # # # # # # # # # # # # # # # # # # # # # # #
      # # # # # # # # # # # # # # # # # # # # # # # # #
      # # # # # # # # # # # # # # # # # # # # # # # # #
      # # # # # # # # # # # # # # # # # # # # # # # # #
    # # # # # # # # # # # # # # # # # # # # # # # # # # #
      # # # # # # # # # # # # # # # # # # # # # # # # #
      # # # # # # # # # # # # # # # # # # # # # # # # #
      # # # # # # # # # # # # # # # # # # # # # # # # #
        # # # # # # # # # # # # # # # # # # # # # # #
          # # # # # # # # # # # # # # # # # # # # #
            # # # # # # # # # # # # # # # # # # #
              # # # # # # # # # # # # # # # # #
                    # # # # # # # # # # #
                              #

For testing such shape may also omit wrapping.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "Heuer's Law: Any feature is a bug unless it can be turned off."


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