Пример #1
0
        public StateMachine()
        {
            m_context = new StateContext();
            m_logger  = new Logger(m_context);

            // it's ok to call virtual method in ctor for C#
            initStates();
        }
Пример #2
0
 public virtual bool CanTransitOnChar(StateContext context, char c)
 {
     return m_condition(c);
 }
Пример #3
0
        public StateMachine()
        {
            m_context = new StateContext();
            m_logger = new Logger(m_context);

            // it's ok to call virtual method in ctor for C#
            initStates();
        }
Пример #4
0
 public Logger(StateContext context)
 {
     m_context = context;
 }
Пример #5
0
 public StateTransitionHelper(State source, State target, StateContext context)
 {
     m_source = source;
     m_target = target;
     m_context = context;
 }
Пример #6
0
 public State(string name, StateContext context)
 {
     m_name = name;
     m_context = context;
 }
Пример #7
0
 public Logger(StateContext context)
 {
     m_context = context;
 }
Пример #8
0
 public virtual bool CanTransitOnChar(StateContext context, char c)
 {
     return(m_condition(c));
 }
Пример #9
0
 public StateTransitionHelper(State source, State target, StateContext context)
 {
     m_source  = source;
     m_target  = target;
     m_context = context;
 }
Пример #10
0
 public State(string name, StateContext context)
 {
     m_name    = name;
     m_context = context;
 }