public void Close() { m_bIsRunning = false; if (m_aGame != null) { m_aGame.Dispose(); m_aGame = null; } if (m_aRoom != null) { m_aRoom.Dispose(); m_aRoom = null; } if (m_aGameSocket != null) { m_aGameSocket.Dispose(); m_aGameSocket = null; } if (m_aThreadMain != null) { m_aThreadMain.Interrupt(); m_aThreadMain = null; } DelAllSession(); }
public void StopGame() { if (m_aGame != null) { m_aGame.Dispose(); m_aGame = null; } }
public FSPGame StartGame() { if (m_aGame != null) { m_aGame.Dispose(); } m_aGame = new FSPGame(); m_aGame.Create(m_aParam); return(m_aGame); }