コード例 #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;
 }