Other Projects
State Design Pattern in C# PDF Print E-mail
Written by Vishvananda Ishaya   
Tuesday, 25 August 2009 21:46

My fascination with the state design pattern began when I was tinkering with UnrealScript back in 2002.  Epic Games (The developers of Unreal, Unreal Tournament, and Gears of War) created a scripting language that was syntactically similar to Java and had language-level support for objects with disntinct states.  It was very cool to be able to create a state for an object and override it in a child class with code like the following:

Attachments:
Download this file (StateMachine.zip)StateMachine.zip[State Machine code and tests in C#]572 Kb
Last Updated on Monday, 19 October 2009 21:36