<?xml version="1.0" ?>
<!DOCTYPE game SYSTEM "game.dtd">

<game>

    <info name="gameExample" version="1.0" />

    <loader javaClass="games.strategy.engine.xml.TestGameLoader"/>


    <map>
        <territory name="canada"/>
        <territory name="us"/>
        <territory name="atlantic" water="true"/>
        <connection t1="canada" t2="us"/>
    </map>
    <resourceList>
        <resource name="gold"/>
        <resource name="silver"/>
    </resourceList>
    <playerList>
        <player name="chretian" optional="true"/>
        <player name="bush" optional="false"/>
        <player name="castro" optional="false"/>
        <alliance player="chretian" alliance="natp"/>
        <alliance player="castro" alliance="natp"/>

    </playerList>
    <unitList>
        <unit name="inf"/>
    </unitList>
    <gamePlay>
        <delegate name="battle" javaClass="games.strategy.engine.xml.TestDelegate"/>
        <delegate name="move" javaClass="games.strategy.engine.xml.TestDelegate"/>
        <sequence>
            <step name="noPlayer" delegate="move" />
            <step name="usMove" delegate="move" player="bush"/>
            <step name="usFight" delegate="battle" player="bush"/>
            <step name="canMove" delegate="move" player="chretian"/>
            <step name="canFight" delegate="battle" player="chretian"/>
        </sequence>
    </gamePlay>
    <production>
        <productionRule name="infForGold">
            <cost resource="gold" quantity="3" />
            <result resourceOrUnit="inf" quantity="1"/>
        </productionRule>
        <productionRule name="infForSilver">
            <cost resource="silver" quantity="5" />
            <result resourceOrUnit="inf" quantity="1"/>
        </productionRule>
        <productionRule name="infForSilverAndGold">
            <cost resource="silver" quantity="1" />
            <cost resource="silver" quantity="1" />
            <result resourceOrUnit="inf" quantity="5"/>
        </productionRule>
        <productionFrontier name="usProd">
            <frontierRules name="infForGold"/>
            <frontierRules name="infForSilver"/>
        </productionFrontier>
        <productionFrontier name="canProd">
            <frontierRules name="infForSilverAndGold"/>
        </productionFrontier>
        <playerProduction player="bush" frontier="usProd" />
        <playerProduction player="chretian" frontier="canProd" />
    </production>

    <attachmentList>
        <attachment name="infAttachment" attachTo="inf" javaClass="games.strategy.engine.xml.TestAttachment" type="unitType">
            <option name="value" value="inf"/>
        </attachment>
        <attachment name="resourceAttachment" attachTo="gold" javaClass="games.strategy.engine.xml.TestAttachment" type="resource">
            <option name="value" value="gold"/>
        </attachment>
        <attachment name="territoryAttachment" attachTo="us" javaClass="games.strategy.engine.xml.TestAttachment" type="territory">
            <option name="value" value="us of a"/>
        </attachment>
        <attachment name="playerAttachment" attachTo="chretian" javaClass="games.strategy.engine.xml.TestAttachment" type="player">
            <option name="value" value="liberal"/>
        </attachment>
    </attachmentList>
    <initialize>
        <ownerInitialize>
            <territoryOwner territory="us" owner="bush"/>
            <territoryOwner territory="canada" owner="chretian"/>
        </ownerInitialize>
        <unitInitialize>
            <unitPlacement unitType="inf" territory="canada" quantity="5" owner="chretian"/>
            <unitPlacement unitType="inf" territory="us" quantity="150" owner="bush"/>
            <heldUnits unitType="inf" player="bush" quantity="20"/>
        </unitInitialize>
        <resourceInitialize>
            <resourceGiven player="chretian" resource="gold" quantity="100"/>
            <resourceGiven player="chretian" resource="silver" quantity="200"/>
        </resourceInitialize>
    </initialize>




</game>





