/// <summary> /// does the game loop /// </summary> /// <param name="mainWindow">Handle to the main window</param> /// <param name="blockLogic">Handle to the block Logic</param> public void gameLoop(mainWindow mainWindow, tet_blocks blockLogic) { this.mainWindow = mainWindow; this.blockLogic = blockLogic; autodrop.Elapsed += new ElapsedEventHandler(autodrop_initiated); autodrop.Enabled = true; }
public tet_network_s(mainWindow mainWindow) { this.mainWindow = mainWindow; startListening(); //STCB = new ServerToClientBridge(this); //DS = new DatabaseServices(this); //DS.executeQuery(); }
public tet_network_c(mainWindow mainWindow) { string ip = System.IO.File.ReadAllText(@"settings.txt"); this.mainWindow = mainWindow; m_clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPAddress[] ipAddress = Dns.GetHostAddresses(ip); IPEndPoint ipEnd = new IPEndPoint(ipAddress[0], 8221); m_clientSocket.Connect(ipEnd); if (m_clientSocket.Connected) { //clientMW._connected = true; mainWindow.reloadGame(); WaitForData(); } }
public tet_blocks(mainWindow mainWindow) { this.mainWindow = mainWindow; }