Example #1
0
 private void InitWorldTierra()
 {
     world         = new MundoTierra();
     mockReferView = new MockReferView();
     world.setRefer(mockReferView);
     world.setViewer(mockReferView);
 }
Example #2
0
 public void RodaSingleThread()
 {
     GC.Collect();
     singleton = new MundoTierra();
     singleton.setViewer(drawer);
     singleton.setRefer(frmPrincipal);
     drawer.SetMundo(singleton);
     singleton.runLoop();
 }
Example #3
0
        public void Roda()
        {
            GC.Collect();
            singleton = new MundoTierra();
            drawer.SetMundo(singleton);
            singleton.setViewer(drawer);
            singleton.setRefer(frmPrincipal);

            //frmPrincipal.ClearRows("dataGridRuns");
            Thread t = new Thread(staticRoda);

            t.Name = "BacktestRunner";
            t.Start();
            while (t.IsAlive)
            {
                Thread.Sleep(100);
                UpdateThreadTick();
            }
        }