]> granicus.if.org Git - xconq/blob - test/auto.g
commits for 7.5.0 pre-release tarball
[xconq] / test / auto.g
1 ;; This is the game used by "make check-auto".
2 ;; In the future, individual tests within autotest probably will
3 ;; want to set up game stuff (using designer mode or something similar?),
4 ;; but for the moment this seems easier.
5 (game-module "autotest")
6
7 (terrain-type plains (char "+"))
8
9 (area 5 5)
10
11 (area (terrain (by-name "+" plains) "5+" "5+" "5+" "5+" "5+"))
12
13 (unit-type town (image-name "town20") (char "*"))
14 (unit-type fighter (char "f"))
15 (unit-type bomber (char "b"))
16 (unit-type infantry (char "i"))
17
18 (add u* acp-per-turn 1)
19
20 (table tp-crossover
21  (fighter bomber 75)
22 )
23 (table tp-max
24  (town (fighter bomber) (10 20))
25 )
26
27 (add t* capacity 16)
28 (table unit-size-in-terrain (u* t* 1))
29
30 (add bomber capacity 1)
31 (add town capacity 50)
32 (table unit-size-as-occupant
33   ;; Disable occupancy by default.
34   (u* u* 100)
35   (infantry bomber 1)
36   ((fighter bomber infantry) town 1)
37   )
38
39 (add u* acp-per-turn 1)