public StateMachine() { m_context = new StateContext(); m_logger = new Logger(m_context); // it's ok to call virtual method in ctor for C# initStates(); }
public virtual bool CanTransitOnChar(StateContext context, char c) { return m_condition(c); }
public Logger(StateContext context) { m_context = context; }
public StateTransitionHelper(State source, State target, StateContext context) { m_source = source; m_target = target; m_context = context; }
public State(string name, StateContext context) { m_name = name; m_context = context; }
public virtual bool CanTransitOnChar(StateContext context, char c) { return(m_condition(c)); }