コード例 #1
0
 /** \brief Returns true if the current mode has laps. */
 bool modeHasLaps()
 {
     if (isBattleMode()) return false;
     const int id = (int)m_minor_mode;
     // See meaning of IDs above
     const int answer = (id-1000)/100;
     return answer!=0;
 }   // modeHasLaps
コード例 #2
0
ファイル: race_manager.hpp プロジェクト: devnexen/stk-code
 /** Returns true if the currently selected minor mode has highscores. */
 bool modeHasHighscores()
 {
     //FIXME: this information is duplicated. RaceManager knows about it,
     //       and each World may set m_use_highscores to true or false.
     //       The reason for this duplication is that we might want to know
     //       whether to display highscores without creating a World.
     return !isBattleMode() &&
            !isSoccerMode() &&
            m_minor_mode != MINOR_MODE_FOLLOW_LEADER;
 }   // modeHasHighscore