Changeset 6048 for code/branches/menu/src/libraries/core/Game.cc
- Timestamp:
- Nov 12, 2009, 11:32:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/src/libraries/core/Game.cc
r6047 r6048 51 51 #include "GameMode.h" 52 52 #include "GameState.h" 53 #include "GUIManager.h" 53 54 54 55 namespace orxonox … … 57 58 { Game::getInstance().stop(); } 58 59 SetConsoleCommandShortcutExternAlias(stop_game, "exit"); 60 static void key_esc() 61 { Game::getInstance().keyESC(); } 62 SetConsoleCommandShortcutExternAlias(key_esc, "keyESC"); 59 63 static void printFPS() 60 64 { COUT(0) << Game::getInstance().getAvgFPS() << std::endl; } … … 354 358 } 355 359 360 void Game::keyESC() 361 { 362 if( this->getState("mainMenu") && this->getState("mainMenu")->getActivity().active==true ) 363 this->stop(); 364 else 365 GUIManager::getInstance().keyESC(); 366 } 367 356 368 void Game::stop() 357 369 {
Note: See TracChangeset
for help on using the changeset viewer.