Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 3:32:34 PM (7 years ago)
Author:
zarron
Message:

with Highscores

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SOBv2_HS17/src/modules/superorxobros/SOB.cc

    r11418 r11601  
    4444#include "SOBFigure.h"
    4545#include "graphics/Camera.h"
     46#include "Highscore.h"
    4647
    4748
     
    4950namespace orxonox
    5051{
    51 
     52    bool newHighscore=0;
    5253    RegisterUnloadableClass(SOB);
    5354
     
    124125        GSLevel::startMainMenu();
    125126        Deathmatch::end();
    126     }
     127}
    127128
    128129    void SOB::restart() {
     
    167168        if (this->figure_ != nullptr && figure_->lvlEnded_) {
    168169            std::stringstream a;
    169             a << "Nice! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart";
     170            if(newHighscore){
     171                a << "Nice! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart";
     172            }
     173            else{
     174                a << "Congrats, new Highscore! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart";
     175            }
    170176            info_ =a.str();
    171177
Note: See TracChangeset for help on using the changeset viewer.