Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2016, 1:37:46 PM (7 years ago)
Author:
kappenh
Message:

Finished Project, Maybe switch enumeration of highscores in table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Highscore_HS16/src/modules/tetris/Tetris.cc

    r11083 r11326  
    3939
    4040#include "Tetris.h"
     41#include "Highscore.h"
    4142
    4243#include "core/CoreIncludes.h"
     
    327328            this->player_->stopControl();
    328329        }
    329 
     330         if (Highscore::exists()){
     331                    int score = this->getScore(this->getPlayer());
     332                    if(score > Highscore::getInstance().getHighestScoreOfGame("Tetris"))
     333                        Highscore::getInstance().storeHighscore("Player","Tetris",score);
     334
     335          }
    330336        this->cleanup();
    331337
Note: See TracChangeset for help on using the changeset viewer.