Changeset 11326
- Timestamp:
- Dec 9, 2016, 1:37:46 PM (8 years ago)
- Location:
- code/branches/Highscore_HS16
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Highscore_HS16/data/gui/scripts/HighscoreMenu.lua
r11324 r11326 45 45 for k,v in pairs(P.levelList) do 46 46 -- only add level if it has desired tag 47 if tag == nil or v:hasTag(tag) then47 if(v:getName() ~= "Hover level" and v:getName() ~= "Pong") then 48 48 P.createFilterTab(v:getName(), v:getName()) 49 49 end 50 50 51 --local highscores = v:getHighscores() 51 52 --orxonox.CommandExecutor:execute("log test:".. highscores) -
code/branches/Highscore_HS16/src/modules/dodgerace/DodgeRace.cc
r11071 r11326 36 36 #include "DodgeRaceCube.h" 37 37 #include "core/CoreIncludes.h" 38 #include "Highscore.h" 38 39 39 40 namespace orxonox … … 224 225 // It will misteriously crash the game! 225 226 // Instead startMainMenu, this won't crash. 227 if (Highscore::exists()){ 228 int score = this->getPoints(); 229 if(score > Highscore::getInstance().getHighestScoreOfGame("Dodge Race")) 230 Highscore::getInstance().storeHighscore("Player","Dodge Race",score); 231 232 } 226 233 GSLevel::startMainMenu(); 227 234 } -
code/branches/Highscore_HS16/src/modules/invader/Invader.cc
r11083 r11326 33 33 34 34 #include "Invader.h" 35 35 #include "Highscore.h" 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/EventIncludes.h" … … 189 189 // It will misteriously crash the game! 190 190 // Instead startMainMenu, this won't crash. 191 if (Highscore::exists()){ 192 int score = this->getPoints(); 193 if(score > Highscore::getInstance().getHighestScoreOfGame("Orxonox Arcade")) 194 Highscore::getInstance().storeHighscore("Player","Orxonox Arcade",score); 195 196 } 191 197 GSLevel::startMainMenu(); 192 198 } -
code/branches/Highscore_HS16/src/modules/jump/Jump.cc
r11315 r11326 315 315 int score = this->getScore(this->getPlayer()); 316 316 if(score > Highscore::getInstance().getHighestScoreOfGame("Jump")) 317 Highscore::getInstance().storeHighscore(" player","Jump",score);317 Highscore::getInstance().storeHighscore("Player","Jump",score); 318 318 319 319 } -
code/branches/Highscore_HS16/src/modules/tetris/Tetris.cc
r11083 r11326 39 39 40 40 #include "Tetris.h" 41 #include "Highscore.h" 41 42 42 43 #include "core/CoreIncludes.h" … … 327 328 this->player_->stopControl(); 328 329 } 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 } 330 336 this->cleanup(); 331 337 -
code/branches/Highscore_HS16/src/modules/towerdefense/TowerDefense.cc
r11083 r11326 81 81 #include "chat/ChatManager.h" 82 82 #include "core/CoreIncludes.h" 83 #include "Highscore.h" 83 84 84 85 namespace orxonox … … 197 198 void TowerDefense::end() 198 199 { 199 200 if (Highscore::exists()){ 201 int score = this->getWaveNumber(); 202 if(score > Highscore::getInstance().getHighestScoreOfGame("Tower Defense")) 203 Highscore::getInstance().storeHighscore("Player","Tower Defense",score); 204 205 } 200 206 TeamDeathmatch::end(); 201 207 ChatManager::message("Match is over! Gameover!");
Note: See TracChangeset
for help on using the changeset viewer.