<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Reacties op: Design Patterns &#8211; State Pattern</title>
	<atom:link href="http://www.cumps.be/design-patterns-state-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cumps.be/design-patterns-state-pattern/</link>
	<description>Living my life...</description>
	<lastBuildDate>Sat, 12 Dec 2009 22:49:53 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Door: Tiago Frossard</title>
		<link>http://www.cumps.be/design-patterns-state-pattern/comment-page-1/#comment-1043</link>
		<dc:creator>Tiago Frossard</dc:creator>
		<pubDate>Wed, 29 Jul 2009 21:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/?p=79#comment-1043</guid>
		<description>Hi David.

I have a different implementation for a state machine where each method returns a new type instead of setting up a _state variable. Implemented like that the code you posted would be something like:

soldier = new ISoldier(); //An interface for every kind of Soldier States you&#039;d like to have.

soldier = soldier.Kill();
soldier = soldier.PerformShoot();

Even tho I can&#039;t see possible problems with this implementation, I&#039;m not sure if they aren&#039;t hidden somewhere.

Do you think that this implementation is plausible?</description>
		<content:encoded><![CDATA[<p>Hi David.</p>
<p>I have a different implementation for a state machine where each method returns a new type instead of setting up a _state variable. Implemented like that the code you posted would be something like:</p>
<p>soldier = new ISoldier(); //An interface for every kind of Soldier States you&#8217;d like to have.</p>
<p>soldier = soldier.Kill();<br />
soldier = soldier.PerformShoot();</p>
<p>Even tho I can&#8217;t see possible problems with this implementation, I&#8217;m not sure if they aren&#8217;t hidden somewhere.</p>
<p>Do you think that this implementation is plausible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Danny Trieu</title>
		<link>http://www.cumps.be/design-patterns-state-pattern/comment-page-1/#comment-1041</link>
		<dc:creator>Danny Trieu</dc:creator>
		<pubDate>Fri, 08 Aug 2008 15:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/?p=79#comment-1041</guid>
		<description>David,

State are finite. May be introducing Enum to implement your concrete state implementations. This would give a tier relation between your state implementation.

--danny</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>State are finite. May be introducing Enum to implement your concrete state implementations. This would give a tier relation between your state implementation.</p>
<p>&#8211;danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: David McClelland</title>
		<link>http://www.cumps.be/design-patterns-state-pattern/comment-page-1/#comment-1040</link>
		<dc:creator>David McClelland</dc:creator>
		<pubDate>Fri, 08 Aug 2008 13:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/?p=79#comment-1040</guid>
		<description>Greetings fellow David - just wanted to let you know how much I appreciate this series!

- David McClelland (from Houston, TX)</description>
		<content:encoded><![CDATA[<p>Greetings fellow David &#8211; just wanted to let you know how much I appreciate this series!</p>
<p>- David McClelland (from Houston, TX)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Design Patterns - State Pattern - David Cumps</title>
		<link>http://www.cumps.be/design-patterns-state-pattern/comment-page-1/#comment-1042</link>
		<dc:creator>Design Patterns - State Pattern - David Cumps</dc:creator>
		<pubDate>Fri, 08 Aug 2008 08:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/?p=79#comment-1042</guid>
		<description>[...] more at http://blog.cumps.be/design-patterns-state-pattern/  Filed under: C#, General Software Development, Visual Studio, .NET, Design [...]</description>
		<content:encoded><![CDATA[<p>[...] more at <a href="http://blog.cumps.be/design-patterns-state-pattern/" rel="nofollow">http://blog.cumps.be/design-patterns-state-pattern/</a>  Filed under: C#, General Software Development, Visual Studio, .NET, Design [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
