<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Behaviors</title><link>https://sourceforge.net/p/split-bot/wiki/Behaviors/</link><description>Recent changes to Behaviors</description><atom:link href="https://sourceforge.net/p/split-bot/wiki/Behaviors/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 19 Jan 2014 13:47:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/split-bot/wiki/Behaviors/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Behaviors page</title><link>https://sourceforge.net/p/split-bot/wiki/Behaviors/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Originally posted by: &lt;a class="" href="http://code.google.com/u/111634761118372853668/" rel="nofollow"&gt;alexandr...@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;if (pop limit reached) -&amp;gt; build houses &lt;/p&gt;
&lt;p&gt;if (need workers) -&amp;gt; create more workers &lt;/p&gt;
&lt;p&gt;if (need resources) -&amp;gt; if (need food) -&amp;gt; if (domestic animal near) -&amp;gt; hunt &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;-&amp;gt; if (fruit tree near) -&amp;gt; forage &lt;/p&gt;
&lt;p&gt;-&amp;gt; if (farm near) -&amp;gt; farm &lt;/p&gt;
&lt;p&gt;-&amp;gt; else -&amp;gt; build farm &lt;/p&gt;
&lt;p&gt;-&amp;gt; else -&amp;gt; if (resource site near) -&amp;gt; gather &lt;/p&gt;
&lt;p&gt;-&amp;gt; else -&amp;gt; build dropsite &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;if (idle workers) -&amp;gt; give orders &lt;/p&gt;
&lt;p&gt;else -&amp;gt; balance economy for higher level plans &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 19 Jan 2014 13:47:09 -0000</pubDate><guid>https://sourceforge.netb9e09b2412221062f32e1ab9cc7d4e7354a5dd4f</guid></item><item><title>Behaviors modified by Anonymous</title><link>https://sourceforge.net/p/split-bot/wiki/Behaviors/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="behaviors-specifications"&gt;Behaviors specifications&lt;/h1&gt;
&lt;h1 id="about-behaviors"&gt;About behaviors&lt;/h1&gt;
&lt;p&gt;Here are the behaviors I plan to develop. Behaviors work together for an Agent which coordinate them. &lt;/p&gt;
&lt;h1 id="specifications"&gt;specifications&lt;/h1&gt;
&lt;h2 id="behaviorbase"&gt;BehaviorBase&lt;/h2&gt;
&lt;p&gt;All behaviors have &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;units &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;The units allocated to this behaviour. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;All behaviors can &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;addUnits &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Add a unit to the behavior's units. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;removeUnits &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Remove a unit from the behavior's units. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="watchpopulation"&gt;WatchPopulation&lt;/h2&gt;
&lt;p&gt;Decision take the form of these indicators &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;numberOfHousesNeeded &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;The number of houses which are needed if possible. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Build houses if population capability &amp;lt; 5% of the population OR if the population capability &amp;lt; 100 people &lt;/p&gt;
&lt;h2 id="buildondemand"&gt;BuildOnDemand&lt;/h2&gt;
&lt;p&gt;Decision take the form of these indicators &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;desiredNumberOfUnits &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;The desired number of units - builders only, at least one soldier to be able to start any building (women can take it from the foundations). &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Build the buildings of the given types when asked to. It comapares the priorities of the requests before starting to build. And adjusts the desiredNumberOfUnits depending on the requests. &lt;/p&gt;
&lt;p&gt;A request is made at least of &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;building type &lt;/li&gt;
&lt;li&gt;priority &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And can include &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;position and rotation &lt;/li&gt;
&lt;li&gt;allowNeiborhood &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;If false, build at the exact position, which may be impossible, then do not build anything. If true, then build near the position if the exact position is not buildable. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;When the position is not provided, it builds in circles around the cityCenterPoint, with circles of a reafius equal to N x DISTANCE_BETWEEN_CIRCLES (0 &amp;lt; N &amp;lt; ...) &lt;/p&gt;
&lt;p&gt;The cityCenterPoint is computed at start and is in the line of the Civic Center and the center of the map, at a distance of CITY_CENTER_DISTANCE_FROM_CIVIC_CENTER. &lt;/p&gt;
&lt;h2 id="preparedefense"&gt;PrepareDefense&lt;/h2&gt;
&lt;p&gt;Decision take the form of these indicators &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;neededBuildings &lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Array of buildings which are needed to defend the city Each element has the details of the needed building, i.e. position, rotation, priority, type... &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Build defenses, i.e. walls and towers around the city when &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;resources &amp;gt; MIN_RESOURCE_TO_BUILD_DEFENSES &lt;/li&gt;
&lt;li&gt;and population &amp;gt; MIN_POPULATION_TO_BUILD_DEFENSES &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The pattern follows circles around the Civic Center and is made of 1 empty space and NUM_TOWERS_BETWEEN_GATES times this pattern: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 tower &lt;/li&gt;
&lt;li&gt;NUM_WALLS_BETWEEN_TOWERS &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 19 Jan 2014 13:47:09 -0000</pubDate><guid>https://sourceforge.net3d9bbb343bd2cf5c3cf89157907b8f3281ae7add</guid></item></channel></rss>