Ejemplo n.º 1
0
 public State(stateCheck check, stateAction action, StateType type)
 {
     this._init();
     this._check  = check;
     this._action = action;
     this._type   = type;
 }
Ejemplo n.º 2
0
 private void _init()
 {
     this._id       = Guid.NewGuid();
     this._children = new List <State> ();
     this._type     = StateType.AND;
     this._action   = null;
     this._check    = () => {
         return(true);
     };
 }
Ejemplo n.º 3
0
 public State(stateCheck check, stateAction action, StateType type, List <State> children)
 {
     this._id     = Guid.NewGuid();
     this._check  = check;
     this._action = action;
     this._type   = type;
     if (children != null)
     {
         this._children = children;
     }
     else
     {
         this._children = new List <State> ();
     }
 }
Ejemplo n.º 4
0
 public State(stateCheck check, stateAction action)
 {
     this._init();
     this._check  = check;
     this._action = action;
 }