<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to EventSystem</title><link>https://sourceforge.net/p/openpatrician/wikimig/EventSystem/</link><description>Recent changes to EventSystem</description><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/EventSystem/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 24 May 2014 07:22:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openpatrician/wikimig/EventSystem/feed" rel="self" type="application/rss+xml"/><item><title>EventSystem modified by Sahits GmbH</title><link>https://sourceforge.net/p/openpatrician/wikimig/EventSystem/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="event-system"&gt;Event System&lt;/h1&gt;
&lt;p&gt;The event system or messaging is used to notify different parts of the game of a change. Different parts may be different areas of the GUI but also global changes (the price change of a ware after a transaction) &lt;/p&gt;
&lt;p&gt;The system itself is a mixture of Java's event system and the Observer pattern. Each interested party in updates implements the IEventListener and registers itself with the Event class the base class for all events. The Events them self are sub-classed to represent their particular flavour: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Price change event &lt;/li&gt;
&lt;li&gt;City events (population, availability, desire) &lt;/li&gt;
&lt;li&gt;Panel updates &lt;/li&gt;
&lt;li&gt;... &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The focal point of the Event class is its notify(Object) method. (Object may be replaces as soon as we know what Object can be.) It calls the gameUpdate(Event,Object) methods in all the listeners. The listeners in turn then decide if they are interested in the message based on the Event object. If they are interested the notice Object tells them more about the update. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sahits GmbH</dc:creator><pubDate>Sat, 24 May 2014 07:22:21 -0000</pubDate><guid>https://sourceforge.net0db4865229a589da1a6d962033ae97f2e288262f</guid></item></channel></rss>