コード例 #1
0
ファイル: Graph.cs プロジェクト: DragonXYZ/cilpe
            public Enumerator(Switch sw)
            {
                this.sw = sw;
                nextArray = sw.NextArray;

                index = sw.curIndex;
                sw.curIndex++;

                position = 0;
            }
コード例 #2
0
ファイル: BTA.cs プロジェクト: DragonXYZ/cilpe
 protected override void VisitSwitch(Switch upNode, object o)
 {
     State state = o as State;
     BTValue val = state.Stack.Pop() as PrimitiveBTValue;
     Annotation.SetNodeBTType(upNode, val.BTType);
 }
コード例 #3
0
ファイル: Visitor.cs プロジェクト: DragonXYZ/cilpe
 protected internal virtual void VisitSwitch(Switch node, object data)
 {
     throw new NodeNotSupportedException(node);
 }
コード例 #4
0
ファイル: BTA.cs プロジェクト: DragonXYZ/cilpe
 protected override void VisitSwitch(Switch upNode, object o)
 {
     DepthContainer cnt = o as DepthContainer;
     cnt.Depth += 1;
 }