// updates the buffer VOID DrawPSBuffer() { RECTL rectl; rectl.xLeft = rectl.yBottom = 0; rectl.xRight = GBoard.GetWinWidth(); rectl.yTop = GBoard.GetWinHeight(); wcprintf("Das Board denkt: Breite: %d H”he: %d", rectl.xRight, rectl.yTop ); WinFillRect( hpsGlob, &rectl, CLR_WHITE ); WinFillRect( hpsBufferGlob, &rectl, CLR_WHITE ); wcprintf("Jetzt wird der Hintergrund gezeichnet"); ShowStatusLine( hpsGlob, GBoard.MovesNeeded(), InfoData.ShipsNotFound, GBoard.GetWinWidth(), GBoard.GetWinHeight() ); ShowStatusLine( hpsBufferGlob, GBoard.MovesNeeded(), InfoData.ShipsNotFound, GBoard.GetWinWidth(), GBoard.GetWinHeight() ); GBoard.DrawPMBoard( hpsGlob ); GBoard.DrawPMBoard( hpsBufferGlob ); }
void CMUSHclientDoc::CheckTimers () { // make sure status line is showing the right thing (after 5 seconds) if (m_pActiveCommandView || m_pActiveOutputView) { CTimeSpan ts = CTime::GetCurrentTime() - m_tStatusDisplayed; if (ts.GetTotalSeconds () > 5) ShowStatusLine (); } // end of this being the active world // flush log file to disk every 2 minutes if (m_logfile) { CTimeSpan ts = CTime::GetCurrentTime() - m_LastFlushTime; // flush every 2 minutes if (ts.GetTotalSeconds () > 120.0) { m_LastFlushTime = CTime::GetCurrentTime(); // fflush (m_logfile); fclose (m_logfile); m_logfile = fopen (m_logfile_name, "a+"); } } // end of log file open // if reconnection wanted, attempt it now ... // if they want automatic reconnection, do it if (App.m_bReconnectOnLinkFailure && !m_bDisconnectOK && m_iConnectPhase == eConnectNotConnected) { Frame.SetStatusMessage (Translate ("Reconnecting ...")); ConnectSocket(); // reconnect } if (m_bEnableTimers) { // timer has kicked in unexpectedly - ignore it if (m_CurrentPlugin) return; CheckTimerList (GetTimerMap ()); // do plugins for (PluginListIterator pit = m_PluginList.begin (); pit != m_PluginList.end (); ++pit) { m_CurrentPlugin = *pit; if (m_CurrentPlugin->m_bEnabled) CheckTimerList (GetTimerMap ()); } // end of doing each plugin m_CurrentPlugin = NULL; } } // end of CMUSHclientDoc::CheckTimers
void CMUSHclientDoc::SetStatus(LPCTSTR Message) { m_strStatusMessage = Message; ShowStatusLine (true); // show it now } // end of CMUSHclientDoc::SetStatus