Glossary: Software Design Patterns
State
Also written: state pattern
A pattern that limits what an object can do based on its status. It can be a dict of allowed moves, or each state can be a class with the same methods.
Glossary: Software Design Patterns
Also written: state pattern
A pattern that limits what an object can do based on its status. It can be a dict of allowed moves, or each state can be a class with the same methods.