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; }
public void StopReplay() { if (logPlayer != null) { simCore.SendStopReplayEvents(); logPlayer.Stop(); logPlayer = null; } }
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(); } }
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); }