URL:
<http://gna.org/patch/?1225>
Summary: add comment explaning the new city radii
Project: Freeciv
Submitted by: syntron
Submitted on: Samstag 08.08.2009 um 22:53
Category: general
Priority: 1 - Later
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
some explanations in the source code:
The city's valid positions are in a circle of the variable city radius around
the city center. Depending on this value the circle will be:
- rectangular
0 1 2 3 4 5 6 7 8 9 10
0 5 5 5 -5
1 5 5 4 4 4 5 5 -4
2 5 5 4 3 3 3 4 5 5 -2
3 5 4 3 2 2 2 3 4 5 -2
4 5 4 3 2 1 0 1 2 3 4 5 -1
5 5 4 3 2 0 0 0 2 3 4 5 0
6 5 4 3 2 1 0 1 2 3 4 5 +1
7 5 4 3 2 2 2 3 4 5 +2
8 5 5 4 3 3 3 4 5 5 +3
9 5 5 4 4 4 5 5 +4
10 5 5 5 +5
-5 -4 -3 -2 -1 0 +1 +2 +3 +4 +5
- hexagonal
0 1 2 3 4 5 6 7 8 9 10
0 5 5 5 5 5 5 -5
1 5 4 4 4 4 4 5 -4
2 5 4 3 3 3 3 4 5 -3
3 5 4 3 2 2 2 3 4 5 -2
4 5 4 3 2 0 0 2 3 4 5 -1
5 5 4 3 2 0 0 0 2 3 4 5 0
6 5 4 3 2 0 0 2 3 4 5 +1
7 5 4 3 2 2 2 3 4 5 +2
8 5 4 3 3 3 3 4 5 +3
9 5 4 4 4 4 4 5 +4
10 5 5 5 5 5 5 +5
-5 -4 -3 -2 -1 0 +1 +2 +3 +4 +5
rectangular hexagonal
size 0: 5 tiles 7 tiles (not used)
size 1: 9 tiles 7 tiles (min value)
size 2: 21 tiles 19 tiles (default value)
size 3: 37 tiles 37 tiles
size 4: 57 tiles 61 tiles
size 5: 89 tiles 91 tiles (max value)
So city_radius == 2 corresponds to the "traditional" city map.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Samstag 08.08.2009 um 22:53 Name:
0005-add-comment-explaning-the-new-city-radii.patch Size: 4kB By: syntron
<http://gna.org/patch/download.php?file_id=6381>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1225>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev