예제 #1
0
 public State0(
     StateGlobal Global,
     IEnumerable <GestureDefinition> gestureDef)
     : base(Global)
 {
     this.T0 = Transition.Gen0_0(gestureDef);
     this.T1 = Transition.Gen0_1(gestureDef);
     this.T2 = Transition.Gen1_3(gestureDef);
 }
예제 #2
0
 public State1(
     StateGlobal Global,
     State0 S0,
     UserActionExecutionContext ctx,
     Def.Event.IDoubleActionSet primaryEvent,
     IEnumerable <OnButtonGestureDefinition> T1,
     IEnumerable <IfButtonGestureDefinition> T2
     ) : base(Global)
 {
     this.S0           = S0;
     this.ctx          = ctx;
     this.primaryEvent = primaryEvent;
     this.T0           = Transition.Gen1_0(T1);
     this.T1           = Transition.Gen1_1(T1);
     this.T2           = Transition.Gen1_2(T1);
     this.T3           = T2;
     this.S2           = new State2(Global, S0, ctx, primaryEvent, this.T0, this.T1, this.T2, this.T3);
 }
예제 #3
0
 public State2(
     StateGlobal Global,
     State0 S0,
     UserActionExecutionContext ctx,
     Def.Event.IDoubleActionSet primaryEvent,
     IDictionary <Def.Event.ISingleAction, IEnumerable <OnButtonWithIfButtonGestureDefinition> > T0,
     IDictionary <Def.Event.IDoubleActionSet, IEnumerable <OnButtonWithIfButtonGestureDefinition> > T1,
     IDictionary <Def.Stroke, IEnumerable <OnButtonWithIfStrokeGestureDefinition> > T2,
     IEnumerable <IfButtonGestureDefinition> T3
     ) : base(Global)
 {
     this.S0           = S0;
     this.ctx          = ctx;
     this.primaryEvent = primaryEvent;
     this.T0           = T0;
     this.T1           = T1;
     this.T2           = T2;
     this.T3           = T3;
 }
예제 #4
0
 public State3(
     StateGlobal Global,
     State0 S0,
     State2 S2,
     UserActionExecutionContext ctx,
     Def.Event.IDoubleActionSet primaryEvent,
     Def.Event.IDoubleActionSet secondaryEvent,
     IEnumerable <IfButtonGestureDefinition> T0,
     IEnumerable <OnButtonWithIfButtonGestureDefinition> T1
     ) : base(Global)
 {
     this.S0             = S0;
     this.S2             = S2;
     this.ctx            = ctx;
     this.primaryEvent   = primaryEvent;
     this.secondaryEvent = secondaryEvent;
     this.T0             = T0;
     this.T1             = T1;
 }
예제 #5
0
 public State(StateGlobal Global)
 {
     this.Global = Global;
 }