public AlternativeState(DFState left, DFState right) { this._States = new List <DFState>() { left, right }; }
public SequenceState(DFState left, DFState right) { this._States = new List <DFState>() { left, right }; }
public LimitState(DFState innerState, uint min, uint?max) { this.InnerState = innerState; if (max != null && max.Value < min) { throw new Exception("max必须比min大"); } this.Min = min; this.Max = max; }
internal void AppendState(DFState state) { this._States.Add(state); }
void onLevel(DFState state) { }
void onLine(DFState state) { }
void onItem(DFState state) { }
void onKey(DFState state) { }
public LimitState(DFState innerState, uint length) { this.Min = length; this.Max = length; this.InnerState = innerState; }
internal void JoinState(DFState state) { this._States.Add(state); }