[Freeciv-Dev] (PR#6926) Extended Wrapping Topologies initialization
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#6926) Extended Wrapping Topologies initialization |
From: |
"Marcelo Burda" <mburda@xxxxxxxxx> |
Date: |
Sat, 22 Nov 2003 15:37:26 -0800 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=6926 >
Hello,
This patch Extend the initialization process of a topology.
Actually we choice x-y sizes and x-y wrapping one at one.
When the arrival of new interesting topologies the choice is too complex, we
can help this choice
selecting x-y size ratios and x-y wrapping from a list of more interesting
topologies. I choice of size
of map, tiny, medium, etc is no cover by this patch but is probably a good idea
too.
The player change the topology id, and Freeciv make anything else.
This patch preserve the bits flags TF_WRAPX and TF_WRAPY, but there are
deprecated by:
XWRAP_TYPE_IS( wrap_type) and YWRAP_TYPE_IS( wrap_type)
wrap_type are on of this : WT_NONE, WT_SIMPLEST, WT_REVERSED
and probably some exotics ones in the future.
This allow some realy interesting topologies
Flat
Cylindrical (the classical one in freeciv)
Torus
Sphere (quincuncial and quincuncial_sq)
Cylinder electron.
Itch one as different best x-y size ratios to initialize and different
wrapping.
This patch is 100% compatible (deprecated function works )
it provide
the initialization function and new variables.
Noting realy related with the quincuncial patch are included, exept the
WT_REVERSED, and the list of
topologies.
Somme code of Quincuncial patch can included (all in map.h and map.c is well
tested) but i thinks we
prefers this.
Marcelo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#6926) Extended Wrapping Topologies initialization,
Marcelo Burda <=
|
|