예제 #1
0
파일: SimEngine.cs 프로젝트: wshanshan/DDD
 public SimEngine()
 {
     simCore = new SimCore();
     logPlayer = null;
     coordinator = null;
     simModelFile = null;
     serverPortNumber = null;
     replayLogger = null;
     textChatServer = null;
     whiteboardServer = null;
     voiceServer = null;
     //handshakeManager = null;
     viewManager = null;
 }
예제 #2
0
파일: SimEngine.cs 프로젝트: wshanshan/DDD
 public void StopReplay()
 {
     if (logPlayer != null)
     {
         simCore.SendStopReplayEvents();
         logPlayer.Stop();
         logPlayer = null;
     }
     
 }
예제 #3
0
파일: SimEngine.cs 프로젝트: wshanshan/DDD
        public void Reset()
        {


            if (coordinator != null)
            {
                coordinator.Stop();
                coordinator = null;
            }
            //Thread.Sleep(100);
            if (simCore != null)
            {
                simCore.Reset();
            }
            if (logPlayer != null)
            {
                logPlayer.Stop();
                logPlayer = null;
            }

            if (viewManager != null)
            {
                viewManager.ResetViewManager();
            }
            

        }
예제 #4
0
파일: SimEngine.cs 프로젝트: wshanshan/DDD
 public void StartReplay(string logname, bool loop, double speed)
 {
     logPlayer = new Player(productVersion, compileDate);
     logPlayer.Start(simCore.simModelInfo, ref simCore.distributor, logname, loop);
     SetGameSpeed(speed);
     while (!logPlayer.IsReady())
     {
         Thread.Sleep(100);
     }
     //logPlayer.SetSpeed(speed);
 }