Receive a state-change request and if it is for a new state, pass it to observers
The actor whose state is changing
The state change event
Allow an observer to request notification. Registering the same observer more than once does not cause it to be notified more than once.
The state observer to register
Stop notifying an observer of state changes. Pairs with
registerObserver; safe to call even if so was never registered.
The state observer to unregister
Anything that manages state and must notify others of state changes has one of these, to allow others to register their desire to observe its state changes.