Changeset 7284 for code/trunk/src/libraries/core/Game.cc
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/Game.cc
r7266 r7284 45 45 #include "util/SubString.h" 46 46 #include "CommandLineParser.h" 47 #include "ConsoleCommand.h"48 47 #include "Core.h" 49 48 #include "CoreIncludes.h" … … 52 51 #include "GameState.h" 53 52 #include "GUIManager.h" 53 #include "command/ConsoleCommand.h" 54 54 55 55 namespace orxonox … … 57 57 static void stop_game() 58 58 { Game::getInstance().stop(); } 59 SetConsoleCommand ShortcutExternAlias(stop_game, "exit");59 SetConsoleCommand("exit", &stop_game); 60 60 static void printFPS() 61 61 { COUT(0) << Game::getInstance().getAvgFPS() << std::endl; } 62 SetConsoleCommand ShortcutExternAlias(printFPS, "printFPS");62 SetConsoleCommand("printFPS", &printFPS); 63 63 static void printTickTime() 64 64 { COUT(0) << Game::getInstance().getAvgTickTime() << std::endl; } 65 SetConsoleCommand ShortcutExternAlias(printTickTime, "printTickTime");65 SetConsoleCommand("printTickTime", &printTickTime); 66 66 67 67 std::map<std::string, GameStateInfo> Game::gameStateDeclarations_s;
Note: See TracChangeset
for help on using the changeset viewer.