~ubuntu-branches/ubuntu/precise/triplea/precise

« back to all changes in this revision

Viewing changes to data/games/strategy/kingstable/delegate/DelegateTest.xml

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-11-11 21:40:11 UTC
  • Revision ID: package-import@ubuntu.com-20111111214011-sehf2rwat36o2xqf
Tags: upstream-1.3.2.2
ImportĀ upstreamĀ versionĀ 1.3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<!DOCTYPE game SYSTEM "game.dtd">
 
3
 
 
4
<game>
 
5
 
 
6
        <info name="delegateTest" version="1" />
 
7
        
 
8
        <loader javaClass="games.strategy.engine.xml.TestGameLoader"/>
 
9
        
 
10
        <map>
 
11
                <grid name="gameboard" type="square" x="11" y="11" horizontal-connections="implicit" vertical-connections="implicit"/>
 
12
        </map>
 
13
        
 
14
        
 
15
        <playerList>
 
16
                <player name="Black" optional="false"/>
 
17
                <player name="White" optional="false"/>
 
18
        </playerList>
 
19
        
 
20
        
 
21
        <unitList>
 
22
                <unit name="pawn"/>
 
23
                <unit name="king"/>
 
24
        </unitList>
 
25
 
 
26
 
 
27
        <gamePlay>
 
28
                <delegate name="init" javaClass="games.strategy.kingstable.delegate.InitializationDelegate" display="Initialize Game"/>
 
29
                <delegate name="play" javaClass="games.strategy.kingstable.delegate.PlayDelegate" display="Play"/>
 
30
                <delegate name="endTurn" javaClass="games.strategy.kingstable.delegate.EndTurnDelegate" display="Check for winner"/>
 
31
                
 
32
                <sequence>
 
33
                        <step name="gameInit" delegate="init" maxRunCount="1"/>
 
34
                        
 
35
                        <step name="blackPlay" delegate="play" player="Black"/>
 
36
                        <step name="blackEndTurn" delegate="endTurn" />
 
37
 
 
38
                        <step name="whitePlay" delegate="play" player="White"/>
 
39
                        <step name="whiteEndTurn" delegate="endTurn" />
 
40
 
 
41
                </sequence>
 
42
        </gamePlay>
 
43
 
 
44
        <attatchmentList>
 
45
                <attatchment name="territoryAttachment"  attatchTo="gameboard_5_5" javaClass="games.strategy.kingstable.attachments.TerritoryAttachment" type="territory" >
 
46
                        <option name="kingsSquare" value="true" />
 
47
            </attatchment>
 
48
                <attatchment name="territoryAttachment"  attatchTo="gameboard_0_0" javaClass="games.strategy.kingstable.attachments.TerritoryAttachment" type="territory" >
 
49
                        <option name="kingsSquare" value="true" />
 
50
                        <option name="kingsExit" value="true" />
 
51
            </attatchment>
 
52
            <attatchment name="territoryAttachment"  attatchTo="gameboard_10_0" javaClass="games.strategy.kingstable.attachments.TerritoryAttachment" type="territory" >
 
53
                        <option name="kingsSquare" value="true" />
 
54
                        <option name="kingsExit" value="true" />
 
55
            </attatchment>
 
56
            <attatchment name="territoryAttachment"  attatchTo="gameboard_10_10" javaClass="games.strategy.kingstable.attachments.TerritoryAttachment" type="territory" >
 
57
                        <option name="kingsSquare" value="true" />
 
58
                        <option name="kingsExit" value="true" />
 
59
            </attatchment>
 
60
            <attatchment name="territoryAttachment"  attatchTo="gameboard_0_10" javaClass="games.strategy.kingstable.attachments.TerritoryAttachment" type="territory" >
 
61
                        <option name="kingsSquare" value="true" />
 
62
                        <option name="kingsExit" value="true" />
 
63
            </attatchment>       
 
64
            
 
65
            <attatchment name="playerAttachment" attatchTo="White" javaClass="games.strategy.kingstable.attachments.PlayerAttachment" type="player">
 
66
            <option name="needsKing" value="true"/>
 
67
        </attatchment>   
 
68
 
 
69
        </attatchmentList>
 
70
 
 
71
        <initialize>
 
72
                <unitInitialize>
 
73
                        <unitPlacement unitType="pawn" territory="gameboard_0_3" quantity="1" owner="Black" />
 
74
                        <unitPlacement unitType="pawn" territory="gameboard_0_4" quantity="1" owner="Black" />
 
75
                        <unitPlacement unitType="pawn" territory="gameboard_0_5" quantity="1" owner="Black" />
 
76
                        <unitPlacement unitType="pawn" territory="gameboard_0_6" quantity="1" owner="Black" />
 
77
                        <unitPlacement unitType="pawn" territory="gameboard_0_7" quantity="1" owner="Black" /> 
 
78
 
 
79
                        <unitPlacement unitType="pawn" territory="gameboard_10_3" quantity="1" owner="Black" />
 
80
                        <unitPlacement unitType="pawn" territory="gameboard_10_4" quantity="1" owner="Black" />
 
81
                        <unitPlacement unitType="pawn" territory="gameboard_10_5" quantity="1" owner="Black" />
 
82
                        <unitPlacement unitType="pawn" territory="gameboard_10_6" quantity="1" owner="Black" />
 
83
                        <unitPlacement unitType="pawn" territory="gameboard_10_7" quantity="1" owner="Black" /> 
 
84
 
 
85
                        <unitPlacement unitType="pawn" territory="gameboard_3_0" quantity="1" owner="Black" />
 
86
                        <unitPlacement unitType="pawn" territory="gameboard_4_0" quantity="1" owner="Black" />
 
87
                        <unitPlacement unitType="pawn" territory="gameboard_5_0" quantity="1" owner="Black" />
 
88
                        <unitPlacement unitType="pawn" territory="gameboard_6_0" quantity="1" owner="Black" />
 
89
                        <unitPlacement unitType="pawn" territory="gameboard_7_0" quantity="1" owner="Black" /> 
 
90
 
 
91
                        <unitPlacement unitType="pawn" territory="gameboard_3_10" quantity="1" owner="Black" />
 
92
                        <unitPlacement unitType="pawn" territory="gameboard_4_10" quantity="1" owner="Black" />
 
93
                        <unitPlacement unitType="pawn" territory="gameboard_5_10" quantity="1" owner="Black" />
 
94
                        <unitPlacement unitType="pawn" territory="gameboard_6_10" quantity="1" owner="Black" />
 
95
                        <unitPlacement unitType="pawn" territory="gameboard_7_10" quantity="1" owner="Black" /> 
 
96
 
 
97
                        <unitPlacement unitType="pawn" territory="gameboard_1_5" quantity="1" owner="Black" />
 
98
                        <unitPlacement unitType="pawn" territory="gameboard_5_1" quantity="1" owner="Black" />
 
99
                        <unitPlacement unitType="pawn" territory="gameboard_5_9" quantity="1" owner="Black" />
 
100
                        <unitPlacement unitType="pawn" territory="gameboard_9_5" quantity="1" owner="Black" />
 
101
 
 
102
 
 
103
                        <unitPlacement unitType="pawn" territory="gameboard_3_5" quantity="1" owner="White" />
 
104
                        
 
105
                        <unitPlacement unitType="pawn" territory="gameboard_4_4" quantity="1" owner="White" />
 
106
                        <unitPlacement unitType="pawn" territory="gameboard_4_5" quantity="1" owner="White" />
 
107
                        <unitPlacement unitType="pawn" territory="gameboard_4_6" quantity="1" owner="White" />
 
108
                        
 
109
                        <unitPlacement unitType="pawn" territory="gameboard_5_3" quantity="1" owner="White" />
 
110
                        <unitPlacement unitType="pawn" territory="gameboard_5_4" quantity="1" owner="White" />
 
111
                        <unitPlacement unitType="king" territory="gameboard_5_5" quantity="1" owner="White" />
 
112
                        <unitPlacement unitType="pawn" territory="gameboard_5_6" quantity="1" owner="White" />
 
113
                        <unitPlacement unitType="pawn" territory="gameboard_5_7" quantity="1" owner="White" />
 
114
 
 
115
                        <unitPlacement unitType="pawn" territory="gameboard_6_4" quantity="1" owner="White" />
 
116
                        <unitPlacement unitType="pawn" territory="gameboard_6_5" quantity="1" owner="White" />
 
117
                        <unitPlacement unitType="pawn" territory="gameboard_6_6" quantity="1" owner="White" /> 
 
118
                        
 
119
                        <unitPlacement unitType="pawn" territory="gameboard_7_5" quantity="1" owner="White" />
 
120
                                                                        
 
121
                </unitInitialize>
 
122
        </initialize>
 
123
 
 
124
        <propertyList>
 
125
                <property name="mapName" value="kings_table" editable="false" />                
 
126
        </propertyList>
 
127
        
 
128
</game>