Debian Codegraph @

doc/api/gameboard

raw
1 This document described the configuration syntax of monopd game configuration
2 files. See the actual configuration files within games/ to see how
3 this syntax is applied.
4
5 Configuration Groups
6 ====================
7
8 <string>
9
10 Board configuration group. Possible values are: General, Board, CardGroups,
11 Cards, EstateGroups and Estates.
12
13 General
14 -------
15
16 The <General> group contains properties specific to the gameboard or all
17 elements on it. Possible key/value pairs are:
18
19 name=string
20
21 The name of the game configuration. "Atlantic", for example.
22
23 description=string
24
25 A short description of the game. "The classic Monopoly game", for example.
26
27 Board
28 -----
29
30 The <Board> group contains properties specific to the gameboard or all
31 elements on it. Possible key/value pairs are:
32
33 go=int
34
35 Defines which estate (0 being the first to be defined, 1 the next, and so
36 on) is the estate where players should start.
37
38 bgcolor=#rrggbb
39
40 Defines a background color for the board and is the default for all estates.
41
42 CardGroups
43 ----------
44
45 The <CardGroups> group has no specific properties of its own, but it has
46 group elements/members (sets of cards) with properties (in the regular
47 key/value pairs).
48
49 [string]
50
51 Group element. String defines the name of the element. Possible key/value
52 pairs for cardgroups are:
53
54 color=#rrggbb
55 bgcolor=#rrggbb
56
57 Define a (text) color and background color for these cards. Different card
58 groups on real gameboards usually have different colors as well.
59
60 Cards
61 -----
62
63 The <Cards> group has no specific properties of its own, but it has group
64 elements (the cards) with properties (in the regular key/value pairs).
65
66 [string]
67
68 Group element. String defines the name or caption of the game card. Valid
69 key/value pairs are:
70
71 group=string
72
73 Defines to which group this card belongs. String must be identical to the
74 name of one of the cardgroups previously defined. Monopd will ignore cards
75 without a matching group.
76
77 nextutil=0|1
78
79 TODO...
80
81 tojail=0|1
82
83 TODO...
84
85 advanceto=int
86
87 Defines an estate a token should advance to. The integer defines the n-th
88 estate defined later, 0-indexed.
89
90 advance=int
91
92 Defines a number of fields to advance. Can be negative, in which case a
93 token should be taken back a number of fields.
94
95 pay=int
96
97 Defines an amount which should be paid upon getting this card. Can be
98 negative, in which case an amount of money is given to the player.
99
100 ###################################
101 TODO: write docs for remaining part
102 ###################################
103
104 nextrr=1
105
106 jailcard=1
107
108 payhouse=25
109 payhotel=100
110
111 payeach=50
112
113 tojail=1
114
115 payeach=-50
116
117 payhouse=40
118 payhotel=115
119
120 <EstateGroups>
121
122 [Dark Purple]
123 color=#6a346a
124 houseprice=50
125
126 [Light Blue]
127 color=#9cceff
128 houseprice=50
129
130 [Purple]
131 color=#9c0062
132 houseprice=100
133
134 [Orange]
135 color=#ff9900
136 houseprice=100
137
138 [Red]
139 color=#ff0000
140 houseprice=150
141
142 [Yellow]
143 color=#ffff39
144 houseprice=150
145
146 [Green]
147 color=#009900
148 houseprice=200
149
150 [Blue]
151 color=#0000ff
152 houseprice=200
153
154 [Railroads]
155 price=200
156 rentmath=12.5*(2^x)
157 rentvar=ownedbyplayer
158
159 [Utilities]
160 price=150
161
162 <Estates>
163
164 [Go]
165
166 [Mediterranean Avenue]
167 group=Dark Purple
168 price=60
169 rent0=2
170 rent1=10
171 rent2=30
172 rent3=90
173 rent4=160
174 rent5=250
175
176 [Community Chest]
177 takecard=Community Chest
178
179 [Baltic Avenue]
180 group=Dark Purple
181 price=60
182 rent0=4
183 rent1=20
184 rent2=60
185 rent3=180
186 rent4=320
187 rent5=450
188
189 [Income Tax]
190 tax=200
191 taxpercentage=10
192
193 [Reading Railroad]
194 group=Railroads
195
196 [Oriental Avenue]
197 group=Light Blue
198 price=100
199 rent0=6
200 rent1=30
201 rent2=90
202 rent3=270
203 rent4=400
204 rent5=550
205
206 [Chance]
207 takecard=Chance
208
209 [Vermont Avenue]
210 group=Light Blue
211 price=100
212 rent0=6
213 rent1=30
214 rent2=90
215 rent3=270
216 rent4=400
217 rent5=550
218
219 [Connecticut Avenue]
220 group=Light Blue
221 price=120
222 rent0=8
223 rent1=40
224 rent2=100
225 rent3=300
226 rent4=450
227 rent5=600
228
229 [In Jail / Just Visiting]
230 jail=1
231
232 [St. Charles Place]
233 group=Purple
234 price=140
235 rent0=10
236 rent1=50
237 rent2=150
238 rent3=450
239 rent4=625
240 rent5=750
241
242 [Electric Company]
243 group=Utilities
244
245 [States Avenue]
246 group=Purple
247 price=140
248 rent0=10
249 rent1=50
250 rent2=150
251 rent3=450
252 rent4=625
253 rent5=750
254
255 [Virginia Avenue]
256 group=Purple
257 price=160
258 rent0=12
259 rent1=60
260 rent2=180
261 rent3=500
262 rent4=700
263 rent5=900
264
265 [Pennsylvania Railroad]
266 group=Railroads
267
268 [St. James Place]
269 group=Orange
270 price=180
271 rent0=14
272 rent1=70
273 rent2=200
274 rent3=550
275 rent4=750
276 rent5=950
277
278 [Community Chest]
279 takecard=Community Chest
280
281 [Tennessee Avenue]
282 group=Orange
283 price=180
284 rent0=14
285 rent1=70
286 rent2=200
287 rent3=550
288 rent4=750
289 rent5=950
290
291 [New York Avenue]
292 group=Orange
293 price=200
294 rent0=18
295 rent1=80
296 rent2=220
297 rent3=600
298 rent4=800
299 rent5=1000
300
301 [Free Parking]
302
303 [Kentucky Avenue]
304 group=Red
305 price=220
306 rent0=18
307 rent1=90
308 rent2=250
309 rent3=700
310 rent4=875
311 rent5=1050
312
313 [Chance]
314 takecard=Chance
315
316 [Indiana Avenue]
317 group=Red
318 price=220
319 rent0=18
320 rent1=90
321 rent2=250
322 rent3=700
323 rent4=875
324 rent5=1050
325
326 [Illinois Avenue]
327 group=Red
328 price=240
329 rent0=20
330 rent1=100
331 rent2=300
332 rent3=750
333 rent4=925
334 rent5=1100
335
336 [B &amp; O Railroad]
337 group=Railroads
338
339 [Atlantic Avenue]
340 group=Yellow
341 price=260
342 rent0=22
343 rent1=110
344 rent2=330
345 rent3=800
346 rent4=975
347 rent5=1150
348
349 [Ventnor Avenue]
350 group=Yellow
351 price=260
352 rent0=22
353 rent1=110
354 rent2=330
355 rent3=800
356 rent4=975
357 rent5=1150
358
359 [Water Works]
360 group=Utilities
361
362 [Marvin Gardens]
363 group=Yellow
364 price=280
365 rent0=22
366 rent1=120
367 rent2=360
368 rent3=850
369 rent4=1025
370 rent5=1200
371
372 [Go to Jail]
373 tojail=1
374
375 [Pacific Avenue]
376 group=Green
377 price=300
378 rent0=26
379 rent1=130
380 rent2=390
381 rent3=900
382 rent4=1100
383 rent5=1275
384
385 [North Carolina Avenue]
386 group=Green
387 price=300
388 rent0=26
389 rent1=130
390 rent2=390
391 rent3=900
392 rent4=1100
393 rent5=1275
394
395 [Community Chest]
396 takecard=Community Chest
397
398 [Pennsylvania Avenue]
399 group=Green
400 price=320
401 rent0=28
402 rent1=150
403 rent2=450
404 rent3=1000
405 rent4=1200
406 rent5=1400
407
408 [Short Line]
409 group=Railroads
410
411 [Chance]
412 takecard=Chance
413
414 [Park Place]
415 group=Blue
416 price=350
417 rent0=35
418 rent1=175
419 rent2=500
420 rent3=1100
421 rent4=1300
422 rent5=1500
423
424 [Luxury Tax]
425 tax=75
426
427 [Boardwalk]
428 group=Blue
429 price=400
430 rent0=50
431 rent1=200
432 rent2=600
433 rent3=1400
434 rent4=1700
435 rent5=2000