State Variables & Functions

MiceOnABeam permits variables and functions to be declared within the scope of a state, such that they are only accessible from within that state, within all it's contained substates and so on. This increases design modularization and helps to abstract out lower-level implementation details.