This way we can eliminate all the if (!battleContext.process) clauses everywhere, which do nothing but make the code more complicated. Supervisor can instead implement a stripped-down version of the Textbox that does nothing more than execute any events, on a (0-time) delay.
This way we can eliminate all the
if (!battleContext.process)
clauses everywhere, which do nothing but make the code more complicated.Supervisor
can instead implement a stripped-down version of theTextbox
that does nothing more than execute any events, on a (0-time) delay.