Changeset 8032 for code/branches/usability/src/libraries
- Timestamp:
- Mar 6, 2011, 2:23:39 PM (14 years ago)
- Location:
- code/branches/usability/src/libraries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/libraries/core/Game.cc
r7993 r8032 61 61 static void printFPS() 62 62 { COUT(0) << Game::getInstance().getAvgFPS() << std::endl; } 63 SetConsoleCommand(" printFPS", &printFPS);63 SetConsoleCommand("Stats", "printFPS", &printFPS); 64 64 static void printTickTime() 65 65 { COUT(0) << Game::getInstance().getAvgTickTime() << std::endl; } 66 SetConsoleCommand(" printTickTime", &printTickTime);66 SetConsoleCommand("Stats", "printTickTime", &printTickTime); 67 67 68 68 std::map<std::string, GameStateInfo> Game::gameStateDeclarations_s; -
code/branches/usability/src/libraries/network/Host.cc
r7801 r8032 38 38 namespace orxonox { 39 39 40 static const std::string __CC_printRTT_group = "Stats"; 40 41 static const std::string __CC_printRTT_name = "printRTT"; 41 42 42 43 SetConsoleCommand("chat", &Host::Chat); 43 SetConsoleCommand(__CC_printRTT_ name, &Host::printRTT);44 SetConsoleCommand(__CC_printRTT_group, __CC_printRTT_name, &Host::printRTT); 44 45 45 46 // Host* Host::instance_=0; … … 55 56 // assert(instance_==0); 56 57 instances_s.push_back(this); 57 ModifyConsoleCommand(__CC_printRTT_ name).setObject(this);58 ModifyConsoleCommand(__CC_printRTT_group, __CC_printRTT_name).setObject(this); 58 59 this->bIsActive_ = false; 59 60 } … … 67 68 assert( std::find( instances_s.begin(), instances_s.end(), this )!=instances_s.end() ); 68 69 instances_s.erase(std::find( instances_s.begin(), instances_s.end(), this )); 69 ModifyConsoleCommand(__CC_printRTT_ name).setObject(0);70 ModifyConsoleCommand(__CC_printRTT_group, __CC_printRTT_name).setObject(0); 70 71 } 71 72
Note: See TracChangeset
for help on using the changeset viewer.