The state pattern is very useful when you need an object to alter its behavior when this object's state changes. The purpose of this article is to give you an example of the State pattern in action. In that case, the State pattern has been applied to a small game framework.
State pattern in C++ applications
Published 09/17/2001
