void CMatch::Display (void) { // If we have to make the first black screen if (m_ModeTime <= BLACKSCREEN_DURATION) { } // If first black screen is done and we have to make a little // pause to allow the players to see the arena before playing else if (m_ModeTime <= BLACKSCREEN_DURATION + PAUSE_BEGIN) { DisplayMatchScreen(); // Reset display origin m_pDisplay->SetOrigin (0, 0); } // If match is currently playing and it's not over else if (!m_MatchOver) { // Reset display origin m_pDisplay->SetOrigin (0, 0); DisplayMatchScreen(); DisplayHurryUpMessage(); DisplayPauseMessage(); } // If the match is over and we have make a pause before the last black screen else if (m_ModeTime <= m_ExitModeTime) { DisplayMatchScreen(); } // If the pause is over and we have to make the last black screen else if (m_ModeTime <= m_ExitModeTime + BLACKSCREEN_DURATION) { } }
void CDemo::Display (void) { // If we have to make the first black screen if (m_ModeTime <= BLACKSCREEN_DURATION) { // This would display the file name of the chosen level: // (Assumed: 8 is the width of a character in pixels) // m_Font.Draw ((VIEW_WIDTH - 8*strlen(m_Options.GetLevelName())) / 2, LEVEL_FILENAME_POSITION_Y, m_Options.GetLevelName()); } // If first black screen is done and we have to make a little // pause to allow the players to see the arena before playing else if (m_ModeTime <= BLACKSCREEN_DURATION + PAUSE_BEGIN) { // Display the board and the arena m_Board.Display (); m_Arena.Display (); // Reset display origin m_pDisplay->SetOrigin (0, 0); } // If match is currently playing and it's not over else if (!m_MatchOver) { // Reset display origin m_pDisplay->SetOrigin (0, 0); DisplayDemoText(); DisplayMatchScreen(); DisplayHurryUpMessage(); } // If the match is over and we have make a pause before the last black screen else if (m_ModeTime <= m_ExitModeTime) { DisplayMatchScreen(); } // If the pause is over and we have to make the last black screen else if (m_ModeTime <= m_ExitModeTime + BLACKSCREEN_DURATION) { } }