public void Transition(GameStateCodes newStateCode) { if (transitionFunctionMappings.ContainsKey(newStateCode)) { TransitionFunc transitionFunc = transitionFunctionMappings[newStateCode]; transitionFunc(); } }
public void Add(TState state, TransitionFunc transition) { _table.Add(state, transition); }