OpenTTD
genland.h
Go to the documentation of this file.
1 /* $Id: genland.h 17248 2009-08-21 20:21:05Z rubidium $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8  */
9 
12 #define M(x, y) {x, y}
13 
14 static const TileIndexDiffC _make_desert_or_rainforest_data[] = {
15  M(-5, -6),
16  M(-4, -6),
17  M(-3, -6),
18  M(-2, -6),
19  M(-1, -6),
20  M( 0, -5),
21  M( 1, -5),
22  M( 2, -5),
23  M( 3, -5),
24  M( 4, -5),
25  M( 5, -5),
26  M(-5, -5),
27  M(-4, -5),
28  M(-3, -5),
29  M(-2, -5),
30  M(-1, -5),
31  M( 0, -4),
32  M( 1, -4),
33  M( 2, -4),
34  M( 3, -4),
35  M( 4, -4),
36  M( 5, -4),
37  M(-5, -4),
38  M(-4, -4),
39  M(-3, -4),
40  M(-2, -4),
41  M(-1, -4),
42  M( 0, -3),
43  M( 1, -3),
44  M( 2, -3),
45  M( 3, -3),
46  M( 4, -3),
47  M( 5, -3),
48  M(-5, -3),
49  M(-4, -3),
50  M(-3, -3),
51  M(-2, -3),
52  M(-1, -3),
53  M( 0, -2),
54  M( 1, -2),
55  M( 2, -2),
56  M( 3, -2),
57  M( 4, -2),
58  M( 5, -2),
59  M(-5, -2),
60  M(-4, -2),
61  M(-3, -2),
62  M(-2, -2),
63  M(-1, -2),
64  M( 0, -1),
65  M( 1, -1),
66  M( 2, -1),
67  M( 3, -1),
68  M( 4, -1),
69  M( 5, -1),
70  M(-5, -1),
71  M(-4, -1),
72  M(-3, -1),
73  M(-2, -1),
74  M(-1, -1),
75  M( 0, 0),
76  M( 1, 0),
77  M( 2, 0),
78  M( 3, 0),
79  M( 4, 0),
80  M( 5, 0),
81  M(-5, 0),
82  M(-4, 0),
83  M(-3, 0),
84  M(-2, 0),
85  M(-1, 0),
86  M( 0, 1),
87  M( 1, 1),
88  M( 2, 1),
89  M( 3, 1),
90  M( 4, 1),
91  M( 5, 1),
92  M(-5, 1),
93  M(-4, 1),
94  M(-3, 1),
95  M(-2, 1),
96  M(-1, 1),
97  M( 0, 2),
98  M( 1, 2),
99  M( 2, 2),
100  M( 3, 2),
101  M( 4, 2),
102  M( 5, 2),
103  M(-5, 2),
104  M(-4, 2),
105  M(-3, 2),
106  M(-2, 2),
107  M(-1, 2),
108  M( 0, 3),
109  M( 1, 3),
110  M( 2, 3),
111  M( 3, 3),
112  M( 4, 3),
113  M( 5, 3),
114  M(-5, 3),
115  M(-4, 3),
116  M(-3, 3),
117  M(-2, 3),
118  M(-1, 3),
119  M( 0, 4),
120  M( 1, 4),
121  M( 2, 4),
122  M( 3, 4),
123  M( 4, 4),
124  M( 5, 4),
125  M(-5, 4),
126  M(-4, 4),
127  M(-3, 4),
128  M(-2, 4),
129  M(-1, 4),
130  M( 0, 5),
131  M( 1, 5),
132  M( 2, 5),
133  M( 3, 5),
134  M( 4, 5),
135  M( 5, 5),
136  M( 6, -3),
137  M(-6, -4),
138  M(-3, 5),
139  M(-3, -7),
140  M( 6, -2),
141  M(-6, -3),
142  M(-2, 5),
143  M(-2, -7),
144  M( 6, -1),
145  M(-6, -2),
146  M(-1, 5),
147  M(-1, -7),
148  M( 6, 0),
149  M(-6, -1),
150  M( 0, 6),
151  M( 0, -6),
152  M( 6, 1),
153  M(-6, 0),
154  M( 1, 6),
155  M( 1, -6),
156  M( 6, 2),
157  M(-6, 1),
158  M( 2, 6),
159  M( 2, -6),
160  M( 6, 3),
161  M(-6, 2),
162  M( 3, 6),
163  M( 3, -6)
164 };
165 
166 
167 
168 #undef M
A pair-construct of a TileIndexDiff.
Definition: map_type.h:58