Open main menu

CDOT Wiki β

Changes

State

2 bytes removed, 22:13, 22 March 2007
Advantages of using State Pattern
'''3. State objects can be shared by other classes.'''
As I mentioned above, state object can be used by other classes. For example, all five species of the War Craft have common behaviors such as "Attack" and "Hold Position" behaviors, and those state-specified behaviors can be used by all character classes. Click the link below to see the examples.
== UML Diagram ==
1
edit