<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Proposal: Combine tags into `<territory>`]]></title><description><![CDATA[<p dir="auto">Proposal: Condense several nodes into the <code>&lt;territory&gt;</code> node. This would be the addition of  optional nodes {<code>&lt;territoryAttachment&gt;</code>, <code>&lt;placements&gt;</code>, <code>&lt;connections&gt;</code> }</p>
<p dir="auto">This update would be backwards compatible. Though, if specifying both old and new tags, the game engine would generate an error to avoid non-determinism.</p>
<p dir="auto">Below are two examples, I'm still considering between whether territoryAttachment properties would be nicer as attributes or if as nested child tags.</p>
<h2>Example 1</h2>
<pre><code>&lt;map&gt;
  &lt;territory name="Quebec"&gt;
     &lt;territoryAttachment owner="Canadians" production="2" unitProduction="3" capital="Canadians" victoryCity="1"/&gt;
     &lt;placements&gt;
         &lt;placement unitType="Infantry" quantity="3"/&gt; &lt;!-- default owner = territory owner --&gt;
         &lt;placement unitType="Tank" quantity="3" owner="Canadians" /&gt;
     &lt;/placements&gt;
     &lt;connections&gt;
        &lt;territory name="SZ 20"/&gt;
        &lt;territory name="SZ 19"/&gt;
        &lt;territory name="Ontario"/&gt;
     &lt;/connections&gt;
  &lt;/territory&gt;
&lt;/map&gt;
</code></pre>
<h2>Example 2 (Alternative territoryAttachment)</h2>
<pre><code>&lt;map&gt;
  &lt;territory name="Quebec"&gt;
     &lt;territoryAttachment&gt; 
       &lt;owner value="Canadians"/&gt;
       &lt;unitProduction value="3" /&gt;
       &lt;kamikazeZone value="true" /&gt;
     &lt;/territoryAttachment&gt;
     &lt;placements&gt;
         &lt;placement unitType="Infantry" quantity="3"/&gt; &lt;!-- default owner = territory owner --&gt;
         &lt;placement unitType="Tank" quantity="3" owner="Canadians" /&gt;
     &lt;/placements&gt;
     &lt;connections&gt;
        &lt;territory name="SZ 20"/&gt;
        &lt;territory name="SZ 19"/&gt;
        &lt;territory name="Ontario"/&gt;
     &lt;/connections&gt;
  &lt;/territory&gt;
&lt;/map&gt;
</code></pre>
<h2>Example (for comparison, existing XML)</h2>
<p dir="auto">The above would be equivalent to the XML  below:</p>
<pre><code>  &lt;map&gt;
    &lt;territory name="Quebec"/&gt;
    &lt;connection t1="Quebec" t2="SZ 20"/&gt;
    &lt;connection t1="Quebec" t2="SZ 19"/&gt;
    &lt;connection t1="Quebec" t2="Ontario"/&gt;
  &lt;/map&gt;
  &lt;initialize&gt;
    &lt;ownerInitialize&gt;
      &lt;territoryOwner territory="Quebec" owner="Canadians"/&gt;
    &lt;/ownerInitialize&gt;
    &lt;unitInitialize&gt;
      &lt;unitPlacement unitType="Infantry" territory="Quebec" quantity="3" owner="Canadians"/&gt;
      &lt;unitPlacement unitType="Tank" territory="Quebec" quantity="3" owner="Canadians"/&gt;
    &lt;/unitInitialize&gt;
  &lt;/initialize&gt;
  &lt;attachmentList&gt;
     &lt;attachment name="territoryAttachment" attachTo="Quebec" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory"&gt;
       &lt;option name="production" value="2"/&gt;
       &lt;option name="unitProduction" value="3"/&gt;
       &lt;option name="capital" value="Canadians"/&gt;
       &lt;option name="victoryCity" value="1"/&gt;
     &lt;/attachment&gt;
  &lt;/attachmentList&gt;
</code></pre>
]]></description><link>https://forums.triplea-game.org/topic/2266/proposal-combine-tags-into-territory</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 09:37:30 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/2266.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Sep 2020 05:44:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Proposal: Combine tags into `<territory>` on Sun, 13 Sep 2020 19:43:21 GMT]]></title><description><![CDATA[<p dir="auto">We could even remove the <code>&lt;territoryAttachment&gt;</code> node altogether, eg:</p>
<pre><code>  &lt;territory name="Quebec"&gt;
     &lt;owner value="Canadians"/&gt;
     &lt;unitProduction value="3" /&gt;
     &lt;kamikazeZone value="true" /&gt;
     &lt;placements&gt;
         :
         :
</code></pre>
<p dir="auto">Thoughts?</p>
<p dir="auto">For canals, they attach to multiple territories, nesting underneath one territory would potentially not be as helpful as it could be. Here is an example of what we have today:</p>
<pre><code>&lt;attachment name="canalAttachmentCentral America - Colombia" attachTo="25 Sea Zone" javaClass="games.s
trategy.triplea.attachments.CanalAttachment" type="territory"&gt;
   &lt;option name="canalName" value="the Central America - Colombia channel"/&gt;
   &lt;option name="landTerritories" value="Central America:Colombia"/&gt;
&lt;/attachment&gt;
&lt;attachment name="canalAttachmentCentral America - Colombia" attachTo="100 Sea Zone" javaClass="games.strategy.triplea.attachments.CanalAttachment" type="territory"&gt;
   &lt;option name="canalName" value="the Central America - Colombia channel"/&gt;
   &lt;option name="landTerritories" value="Central America:Colombia"/&gt;
&lt;/attachment&gt;
</code></pre>
<p dir="auto">I think that might be better as one 'canal' tag. It's a really good call-out - though if it's going to be a different tag then perhaps topic for another thread (thread created: <a href="https://forums.triplea-game.org/topic/2269/proposal-simpler-canal-node">https://forums.triplea-game.org/topic/2269/proposal-simpler-canal-node</a>)</p>
]]></description><link>https://forums.triplea-game.org/post/42842</link><guid isPermaLink="true">https://forums.triplea-game.org/post/42842</guid><dc:creator><![CDATA[LaFayette]]></dc:creator><pubDate>Sun, 13 Sep 2020 19:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to Proposal: Combine tags into `<territory>` on Sun, 13 Sep 2020 12:47:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lafayette" aria-label="Profile: LaFayette">@<bdi>LaFayette</bdi></a></p>
<p dir="auto">I like example 2 with the &lt;attachment&gt; (saying territoryAttachment in the &lt;territory&gt; block seems redundant) listed out separately, seems easier to read and flows more like the rest of the block.</p>
<p dir="auto">Would territory 'Ontario' need to show a connection to 'Quebec'? Maybe for clarity but on connection should be enough.</p>
<p dir="auto">Would canal connections be also included?</p>
<p dir="auto">I understand that this is just an example, but I do like the direction this is headed.</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/post/42836</link><guid isPermaLink="true">https://forums.triplea-game.org/post/42836</guid><dc:creator><![CDATA[wc_sumpton]]></dc:creator><pubDate>Sun, 13 Sep 2020 12:47:11 GMT</pubDate></item></channel></rss>