Beispiel #1
0
        public Circuit()
        {
            tree = new GraphTree();

            // rootはCPUで固定
            var temp = new Node(ChipFactory.GetInstance(ChipName.CPU));

            // nextをnullでうめる
            temp.next.Clear();
            for (int i = 0; i < LimitConnect.Get(ChipName.CPU); i++)
            {
                temp.next.Add(null);
            }

            tree.root = temp;
            tree.now  = temp;
        }
Beispiel #2
0
        private void Begin2DMapMode()
        {
            CGameView = new Controls.View._2D.GameViewMap();
            CGameView.Show(this.dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.Document);
            CGraphTree = new Graph2D();
            CGraphTree.Show(this.dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft);

            GGraph = new GameGraph2D();

            CGraphTree.SetGameGraph(GGraph);
            CGameView.SetGameGraph(GGraph);

            CTileSelect = new Controls.Selector.TileSelector();

            CTileSelect.Show(this.dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockBottom);
            EditMode = EditorMode.Game2D;
        }
Beispiel #3
0
        private void Begin3DMapMode()
        {
            CGameView = new Controls.View._3D.GameView3D();
            CGameView.Show(this.dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.Document);
            CGraphTree = new Controls.Graph._3D.Graph3D();
            CGraphTree.Show(this.dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft);

            GGraph = new GameGraph3D();
            CGraphTree.SetGameGraph(GGraph);

            CGameView.BindView();
            var gv3d = CGameView as Controls.View._3D.GameView3D;

            var g = gv3d.GGraph3D;

            var quad = TrinityEngine.Gen.GeoGen.Quad(100, 100);

            g.AddNode(quad);
        }