Read Part One and Part Two first. If you don't already own a copy of "Design Patterns" by the Gang of Four I would recommend checking it out, since it seems to be the definitive reference.
This entry will continue the discussion on the State Design Pattern. It will be broken up into two parts: a) Responses from feedback I've received on the previous two articles and b) Explanation of how we handle input events at the base State class while still providing flexibility for concrete states to implement their own input event handlers. Read the rest of this entry ...