- Timestamp:
- Aug 26, 2010, 12:09:12 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/Game.cc
r7204 r7219 57 57 static void stop_game() 58 58 { Game::getInstance().stop(); } 59 SetConsoleCommandShortcutExternAlias(stop_game, "exit");59 _SetConsoleCommand("exit", &stop_game); 60 60 static void printFPS() 61 61 { COUT(0) << Game::getInstance().getAvgFPS() << std::endl; } 62 SetConsoleCommandShortcutExternAlias(printFPS, "printFPS");62 _SetConsoleCommand("printFPS", &printFPS); 63 63 static void printTickTime() 64 64 { COUT(0) << Game::getInstance().getAvgTickTime() << std::endl; } 65 SetConsoleCommandShortcutExternAlias(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.