For consistency, naming these "SetXState()" instead of just "XState()" would be better.  Generally speaking function names should always be verbs, since they're used as verbs in code.