[Orxonox-commit 2531] r7236 - in code/branches/consolecommands3/src: libraries/core libraries/core/command libraries/core/input libraries/network libraries/tools modules/designtools modules/objects/triggers modules/overlays/hud orxonox orxonox/controllers orxonox/gamestates orxonox/overlays

landauf at orxonox.net landauf at orxonox.net
Sat Aug 28 01:51:04 CEST 2010


Author: landauf
Date: 2010-08-28 01:51:04 +0200 (Sat, 28 Aug 2010)
New Revision: 7236

Modified:
   code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc
   code/branches/consolecommands3/src/libraries/core/Core.cc
   code/branches/consolecommands3/src/libraries/core/CorePrereqs.h
   code/branches/consolecommands3/src/libraries/core/GUIManager.cc
   code/branches/consolecommands3/src/libraries/core/Game.cc
   code/branches/consolecommands3/src/libraries/core/GraphicsManager.cc
   code/branches/consolecommands3/src/libraries/core/command/ArgumentCompletionFunctions.cc
   code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.cc
   code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.h
   code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc
   code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.cc
   code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h
   code/branches/consolecommands3/src/libraries/core/command/ConsoleCommandCompilation.cc
   code/branches/consolecommands3/src/libraries/core/command/IRC.cc
   code/branches/consolecommands3/src/libraries/core/command/Shell.cc
   code/branches/consolecommands3/src/libraries/core/command/TclBind.cc
   code/branches/consolecommands3/src/libraries/core/command/TclThreadManager.cc
   code/branches/consolecommands3/src/libraries/core/input/InputManager.cc
   code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc
   code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc
   code/branches/consolecommands3/src/libraries/core/input/Mouse.cc
   code/branches/consolecommands3/src/libraries/network/Host.cc
   code/branches/consolecommands3/src/libraries/tools/Timer.cc
   code/branches/consolecommands3/src/modules/designtools/ScreenshotManager.cc
   code/branches/consolecommands3/src/modules/designtools/SkyboxGenerator.cc
   code/branches/consolecommands3/src/modules/objects/triggers/Trigger.cc
   code/branches/consolecommands3/src/modules/overlays/hud/GametypeStatus.cc
   code/branches/consolecommands3/src/orxonox/ChatInputHandler.cc
   code/branches/consolecommands3/src/orxonox/Test.cc
   code/branches/consolecommands3/src/orxonox/controllers/ArtificialController.cc
   code/branches/consolecommands3/src/orxonox/controllers/HumanController.cc
   code/branches/consolecommands3/src/orxonox/controllers/NewHumanController.cc
   code/branches/consolecommands3/src/orxonox/gamestates/GSMainMenu.cc
   code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc
   code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.cc
   code/branches/consolecommands3/src/orxonox/overlays/OrxonoxOverlay.cc
   code/branches/consolecommands3/src/orxonox/overlays/OverlayGroup.cc
Log:
replaced the temporary names of all ConsoleCommand related classes and functions by their real names

Modified: code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/ConfigFileManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -430,31 +430,31 @@
     static const std::string __CC_tconfig_name = "tconfig";
     static const std::string __CC_getConfig_name = "getConfig";
 
-    _SetConsoleCommand(__CC_load_name,            &ConfigFile::load);
-    _SetConsoleCommand(__CC_setFilename_name,     &SettingsConfigFile::setFilename);
-    _SetConsoleCommand(__CC_config_name,          &SettingsConfigFile::config).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue());
-    _SetConsoleCommand(__CC_tconfig_name,         &SettingsConfigFile::tconfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue());
-    _SetConsoleCommand(__CC_getConfig_name,       &SettingsConfigFile::getConfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries());
+    SetConsoleCommand(__CC_load_name,            &ConfigFile::load);
+    SetConsoleCommand(__CC_setFilename_name,     &SettingsConfigFile::setFilename);
+    SetConsoleCommand(__CC_config_name,          &SettingsConfigFile::config).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue());
+    SetConsoleCommand(__CC_tconfig_name,         &SettingsConfigFile::tconfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries()).argumentCompleter(2, autocompletion::settingsvalue());
+    SetConsoleCommand(__CC_getConfig_name,       &SettingsConfigFile::getConfig).argumentCompleter(0, autocompletion::settingssections()).argumentCompleter(1, autocompletion::settingsentries());
 
     SettingsConfigFile* SettingsConfigFile::singletonPtr_s = 0;
 
     SettingsConfigFile::SettingsConfigFile(const std::string& filename)
         : ConfigFile(filename)
     {
-        _ModifyConsoleCommand(__CC_load_name).setObject(this);
-        _ModifyConsoleCommand(__CC_setFilename_name).setObject(this);
-        _ModifyConsoleCommand(__CC_config_name).setObject(this);
-        _ModifyConsoleCommand(__CC_tconfig_name).setObject(this);
-        _ModifyConsoleCommand(__CC_getConfig_name).setObject(this);
+        ModifyConsoleCommand(__CC_load_name).setObject(this);
+        ModifyConsoleCommand(__CC_setFilename_name).setObject(this);
+        ModifyConsoleCommand(__CC_config_name).setObject(this);
+        ModifyConsoleCommand(__CC_tconfig_name).setObject(this);
+        ModifyConsoleCommand(__CC_getConfig_name).setObject(this);
     }
 
     SettingsConfigFile::~SettingsConfigFile()
     {
-        _ModifyConsoleCommand(__CC_load_name).setObject(0);
-        _ModifyConsoleCommand(__CC_setFilename_name).setObject(0);
-        _ModifyConsoleCommand(__CC_config_name).setObject(0);
-        _ModifyConsoleCommand(__CC_tconfig_name).setObject(0);
-        _ModifyConsoleCommand(__CC_getConfig_name).setObject(0);
+        ModifyConsoleCommand(__CC_load_name).setObject(0);
+        ModifyConsoleCommand(__CC_setFilename_name).setObject(0);
+        ModifyConsoleCommand(__CC_config_name).setObject(0);
+        ModifyConsoleCommand(__CC_tconfig_name).setObject(0);
+        ModifyConsoleCommand(__CC_getConfig_name).setObject(0);
     }
 
     void SettingsConfigFile::load()

Modified: code/branches/consolecommands3/src/libraries/core/Core.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/Core.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/Core.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -87,7 +87,7 @@
         // Cleanup guard for identifier destruction (incl. XMLPort, configValues, consoleCommands)
         : identifierDestroyer_(Identifier::destroyAllIdentifiers)
         // Cleanup guard for external console commands that don't belong to an Identifier
-        , consoleCommandDestroyer_(_ConsoleCommand::destroyAll)
+        , consoleCommandDestroyer_(ConsoleCommand::destroyAll)
         , bGraphicsLoaded_(false)
         , bStartIOConsole_(true)
     {

Modified: code/branches/consolecommands3/src/libraries/core/CorePrereqs.h
===================================================================
--- code/branches/consolecommands3/src/libraries/core/CorePrereqs.h	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/CorePrereqs.h	2010-08-27 23:51:04 UTC (rev 7236)
@@ -193,7 +193,7 @@
     class ArgumentCompleter;
     class ArgumentCompletionListElement;
     class CommandEvaluation;
-    class _ConsoleCommand;
+    class ConsoleCommand;
     class Executor;
     template <class T>
     class ExecutorMember;

Modified: code/branches/consolecommands3/src/libraries/core/GUIManager.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/GUIManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/GUIManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -70,7 +70,7 @@
 {
     static void key_esc()
         { GUIManager::getInstance().keyESC(); }
-    _SetConsoleCommand("keyESC", &key_esc);
+    SetConsoleCommand("keyESC", &key_esc);
 
     class CEGUILogger : public CEGUI::DefaultLogger
     {
@@ -98,8 +98,8 @@
 
     GUIManager* GUIManager::singletonPtr_s = 0;
 
-    _SetConsoleCommand("showGUI", &GUIManager::showGUI).defaultValue(1, false).defaultValue(2, true);
-    _SetConsoleCommand("hideGUI", &GUIManager::hideGUI);
+    SetConsoleCommand("showGUI", &GUIManager::showGUI).defaultValue(1, false).defaultValue(2, true);
+    SetConsoleCommand("hideGUI", &GUIManager::hideGUI);
 
     /**
     @brief

Modified: code/branches/consolecommands3/src/libraries/core/Game.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/Game.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/Game.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -56,13 +56,13 @@
 {
     static void stop_game()
         { Game::getInstance().stop(); }
-    _SetConsoleCommand("exit", &stop_game);
+    SetConsoleCommand("exit", &stop_game);
     static void printFPS()
         { COUT(0) << Game::getInstance().getAvgFPS() << std::endl; }
-    _SetConsoleCommand("printFPS", &printFPS);
+    SetConsoleCommand("printFPS", &printFPS);
     static void printTickTime()
         { COUT(0) << Game::getInstance().getAvgTickTime() << std::endl; }
-    _SetConsoleCommand("printTickTime", &printTickTime);
+    SetConsoleCommand("printTickTime", &printTickTime);
 
     std::map<std::string, GameStateInfo> Game::gameStateDeclarations_s;
     Game* Game::singletonPtr_s = 0;

Modified: code/branches/consolecommands3/src/libraries/core/GraphicsManager.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/GraphicsManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/GraphicsManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -65,7 +65,7 @@
 namespace orxonox
 {
     static const std::string __CC_printScreen_name = "printScreen";
-    _DeclareConsoleCommand(__CC_printScreen_name, &prototype::void__void);
+    DeclareConsoleCommand(__CC_printScreen_name, &prototype::void__void);
 
     class OgreWindowEventListener : public Ogre::WindowEventListener
     {
@@ -133,7 +133,7 @@
         Loader::unload(debugOverlay_.get());
 
         Ogre::WindowEventUtilities::removeWindowEventListener(renderWindow_, ogreWindowEventListener_.get());
-        _ModifyConsoleCommand(__CC_printScreen_name).resetFunction();
+        ModifyConsoleCommand(__CC_printScreen_name).resetFunction();
 
         // Undeclare the resources
         Loader::unload(resources_.get());
@@ -323,7 +323,7 @@
         Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(Ogre::MIP_UNLIMITED);
 
         // add console commands
-        _ModifyConsoleCommand(__CC_printScreen_name).setFunction(&GraphicsManager::printScreen, this);
+        ModifyConsoleCommand(__CC_printScreen_name).setFunction(&GraphicsManager::printScreen, this);
     }
 
     void GraphicsManager::loadDebugOverlay()

Modified: code/branches/consolecommands3/src/libraries/core/command/ArgumentCompletionFunctions.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/ArgumentCompletionFunctions.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/ArgumentCompletionFunctions.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -59,9 +59,9 @@
 
         namespace detail
         {
-            bool groupIsVisible(const std::map<std::string, _ConsoleCommand*>& group, bool bOnlyShowHidden)
+            bool groupIsVisible(const std::map<std::string, ConsoleCommand*>& group, bool bOnlyShowHidden)
             {
-                for (std::map<std::string, _ConsoleCommand*>::const_iterator it_command = group.begin(); it_command != group.end(); ++it_command)
+                for (std::map<std::string, ConsoleCommand*>::const_iterator it_command = group.begin(); it_command != group.end(); ++it_command)
                     if (it_command->second->isActive() && it_command->second->hasAccess() && (!it_command->second->isHidden())^bOnlyShowHidden)
                         return true;
 
@@ -73,18 +73,18 @@
                 ArgumentCompletionList groupList;
                 std::string fragmentLC = getLowercase(fragment);
 
-                const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& commands = _ConsoleCommand::getCommands();
-                for (std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = commands.begin(); it_group != commands.end(); ++it_group)
+                const std::map<std::string, std::map<std::string, ConsoleCommand*> >& commands = ConsoleCommand::getCommands();
+                for (std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = commands.begin(); it_group != commands.end(); ++it_group)
                     if (groupIsVisible(it_group->second, bOnlyShowHidden) && it_group->first != "" && (fragmentLC == "" || getLowercase(it_group->first).find_first_of(fragmentLC) == 0))
                         groupList.push_back(ArgumentCompletionListElement(it_group->first, getLowercase(it_group->first)));
 
-                std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = commands.find("");
+                std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = commands.find("");
                 if (it_group != commands.end())
                 {
                     if (!groupList.empty())
                         groupList.push_back(ArgumentCompletionListElement("", "", "\n"));
 
-                    for (std::map<std::string, _ConsoleCommand*>::const_iterator it_command = it_group->second.begin(); it_command != it_group->second.end(); ++it_command)
+                    for (std::map<std::string, ConsoleCommand*>::const_iterator it_command = it_group->second.begin(); it_command != it_group->second.end(); ++it_command)
                         if (it_command->second->isActive() && it_command->second->hasAccess() && (!it_command->second->isHidden())^bOnlyShowHidden && (fragmentLC == "" || getLowercase(it_command->first).find_first_of(fragmentLC) == 0))
                             groupList.push_back(ArgumentCompletionListElement(it_command->first, getLowercase(it_command->first)));
                 }
@@ -101,14 +101,14 @@
 
                 std::string groupLC = getLowercase(group);
 
-                std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = _ConsoleCommand::getCommands().begin();
-                for ( ; it_group != _ConsoleCommand::getCommands().end(); ++it_group)
+                std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = ConsoleCommand::getCommands().begin();
+                for ( ; it_group != ConsoleCommand::getCommands().end(); ++it_group)
                     if (getLowercase(it_group->first) == groupLC)
                         break;
 
-                if (it_group != _ConsoleCommand::getCommands().end())
+                if (it_group != ConsoleCommand::getCommands().end())
                 {
-                    for (std::map<std::string, _ConsoleCommand*>::const_iterator it_command = it_group->second.begin(); it_command != it_group->second.end(); ++it_command)
+                    for (std::map<std::string, ConsoleCommand*>::const_iterator it_command = it_group->second.begin(); it_command != it_group->second.end(); ++it_command)
                         if (it_command->second->isActive() && it_command->second->hasAccess() && (!it_command->second->isHidden())^bOnlyShowHidden)
                             commandList.push_back(ArgumentCompletionListElement(it_command->first, getLowercase(it_command->first)));
                 }
@@ -151,19 +151,19 @@
             if (tokens.size() == 0)
                 return detail::_groupsandcommands(fragment, true);
 
-            if (_ConsoleCommand::getCommandLC(getLowercase(tokens[0])))
+            if (ConsoleCommand::getCommandLC(getLowercase(tokens[0])))
                 return ARGUMENT_COMPLETION_FUNCTION_CALL(command)(fragment);
 
             if (tokens.size() == 1)
             {
-                std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = _ConsoleCommand::getCommands().find(tokens[0]);
-                if (it_group != _ConsoleCommand::getCommands().end())
+                std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = ConsoleCommand::getCommands().find(tokens[0]);
+                if (it_group != ConsoleCommand::getCommands().end())
                     return detail::_subcommands(fragment, tokens[0], true);
                 else
                     return detail::_groupsandcommands(fragment, true);
             }
 
-            if (_ConsoleCommand::getCommandLC(getLowercase(tokens[0]), getLowercase(tokens[1])))
+            if (ConsoleCommand::getCommandLC(getLowercase(tokens[0]), getLowercase(tokens[1])))
                 return ARGUMENT_COMPLETION_FUNCTION_CALL(command)(fragment);
 
             return ArgumentCompletionList();

Modified: code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -212,8 +212,8 @@
             else
             {
                 std::string groupLC = getLowercase(this->getToken(0));
-                std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = _ConsoleCommand::getCommands().begin();
-                for ( ; it_group != _ConsoleCommand::getCommands().end(); ++it_group)
+                std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = ConsoleCommand::getCommands().begin();
+                for ( ; it_group != ConsoleCommand::getCommands().end(); ++it_group)
                     if (getLowercase(it_group->first) == groupLC)
                         return std::string("Error: There is no command in group \"") + this->getToken(0) + "\" starting with \"" + this->getToken(1) + "\".";
 
@@ -379,7 +379,7 @@
         return output;
     }
 
-    /* static */ std::string CommandEvaluation::dump(const _ConsoleCommand* command)
+    /* static */ std::string CommandEvaluation::dump(const ConsoleCommand* command)
     {
         std::string output = command->getName();
         if (command->getExecutor()->getParamCount() > 0)

Modified: code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.h
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.h	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.h	2010-08-27 23:51:04 UTC (rev 7236)
@@ -58,7 +58,7 @@
             inline bool isValid() const
                 { return (this->execCommand_ != 0); }
 
-            inline _ConsoleCommand* getConsoleCommand() const
+            inline ConsoleCommand* getConsoleCommand() const
                 { return this->execCommand_; }
 
             void setEvaluatedParameter(unsigned int index, const MultiType& param);
@@ -83,12 +83,12 @@
             static size_t getSize(const ArgumentCompletionList& list);
 
             static std::string dump(const ArgumentCompletionList& list);
-            static std::string dump(const _ConsoleCommand* command);
+            static std::string dump(const ConsoleCommand* command);
 
             static std::string getCommonBegin(const ArgumentCompletionList& list);
 
-            _ConsoleCommand* execCommand_;
-            _ConsoleCommand* hintCommand_;
+            ConsoleCommand* execCommand_;
+            ConsoleCommand* hintCommand_;
             SubString tokens_;
             std::string string_;
             unsigned int execArgumentsOffset_;

Modified: code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -37,12 +37,12 @@
     static const std::string __CC_CommandExecutor_name = "CommandExecutor";
     static const std::string __CC_autocomplete_name = "autocomplete";
 
-    _SetConsoleCommand(__CC_CommandExecutor_name, __CC_autocomplete_name, &CommandExecutor::_autocomplete)
+    SetConsoleCommand(__CC_CommandExecutor_name, __CC_autocomplete_name, &CommandExecutor::_autocomplete)
         .hide()
         .argumentCompleter(0, autocompletion::groupsandcommands())
         .argumentCompleter(1, autocompletion::subcommands());
 
-    _SetConsoleCommand("unhide", &CommandExecutor::unhide)
+    SetConsoleCommand("unhide", &CommandExecutor::unhide)
         .argumentCompleter(0, autocompletion::hiddencommand());
 
     /* static */ CommandExecutor& CommandExecutor::getInstance()
@@ -86,16 +86,16 @@
         CommandEvaluation evaluation;
         evaluation.initialize(command);
 
-        evaluation.hintCommand_ = _ConsoleCommand::getCommand(__CC_CommandExecutor_name, __CC_autocomplete_name);
+        evaluation.hintCommand_ = ConsoleCommand::getCommand(__CC_CommandExecutor_name, __CC_autocomplete_name);
 
         if (evaluation.getNumberOfArguments() >= 1)
         {
-            evaluation.execCommand_ = _ConsoleCommand::getCommandLC(evaluation.getToken(0));
+            evaluation.execCommand_ = ConsoleCommand::getCommandLC(evaluation.getToken(0));
             if (evaluation.execCommand_)
                 evaluation.execArgumentsOffset_ = 1;
             else if (evaluation.getNumberOfArguments() >= 2)
             {
-                evaluation.execCommand_ = _ConsoleCommand::getCommandLC(evaluation.getToken(0), evaluation.getToken(1));
+                evaluation.execCommand_ = ConsoleCommand::getCommandLC(evaluation.getToken(0), evaluation.getToken(1));
                 if (evaluation.execCommand_)
                     evaluation.execArgumentsOffset_ = 2;
             }

Modified: code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -35,7 +35,7 @@
 
 namespace orxonox
 {
-    _ConsoleCommand::_ConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized)
+    ConsoleCommand::ConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized)
     {
         this->bActive_ = true;
         this->bHidden_ = false;
@@ -56,44 +56,44 @@
         if (bInitialized)
             this->executor_ = executor;
 
-        _ConsoleCommand::registerCommand(group, name, this);
+        ConsoleCommand::registerCommand(group, name, this);
     }
 
-    _ConsoleCommand::~_ConsoleCommand()
+    ConsoleCommand::~ConsoleCommand()
     {
-        _ConsoleCommand::unregisterCommand(this);
+        ConsoleCommand::unregisterCommand(this);
     }
 
-    _ConsoleCommand& _ConsoleCommand::addShortcut()
+    ConsoleCommand& ConsoleCommand::addShortcut()
     {
-        _ConsoleCommand::registerCommand("", this->baseName_, this);
+        ConsoleCommand::registerCommand("", this->baseName_, this);
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::addShortcut(const std::string&  name)
+    ConsoleCommand& ConsoleCommand::addShortcut(const std::string&  name)
     {
-        _ConsoleCommand::registerCommand("", name, this);
+        ConsoleCommand::registerCommand("", name, this);
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::addGroup(const std::string& group)
+    ConsoleCommand& ConsoleCommand::addGroup(const std::string& group)
     {
-        _ConsoleCommand::registerCommand(group, this->baseName_, this);
+        ConsoleCommand::registerCommand(group, this->baseName_, this);
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::addGroup(const std::string& group, const std::string&  name)
+    ConsoleCommand& ConsoleCommand::addGroup(const std::string& group, const std::string&  name)
     {
-        _ConsoleCommand::registerCommand(group, name, this);
+        ConsoleCommand::registerCommand(group, name, this);
         return *this;
     }
 
-    bool _ConsoleCommand::isActive() const
+    bool ConsoleCommand::isActive() const
     {
         return (this->bActive_ && this->executor_ && this->executor_->getFunctor() && (this->executor_->getFunctor()->getType() == Functor::Type::Static || this->executor_->getFunctor()->getRawObjectPointer()));
     }
 
-    bool _ConsoleCommand::hasAccess() const
+    bool ConsoleCommand::hasAccess() const
     {
         switch (this->accessLevel_)
         {
@@ -109,7 +109,7 @@
         }
     }
 
-    bool _ConsoleCommand::headersMatch(const FunctorPtr& functor)
+    bool ConsoleCommand::headersMatch(const FunctorPtr& functor)
     {
         unsigned int minparams = std::min(this->baseExecutor_->getParamCount(), functor->getParamCount());
 
@@ -129,7 +129,7 @@
         }
     }
 
-    bool _ConsoleCommand::headersMatch(const ExecutorPtr& executor)
+    bool ConsoleCommand::headersMatch(const ExecutorPtr& executor)
     {
         unsigned int minparams = std::min(this->baseExecutor_->getParamCount(), executor->getParamCount());
 
@@ -147,7 +147,7 @@
         }
     }
 
-    bool _ConsoleCommand::setFunction(const ExecutorPtr& executor, bool bForce)
+    bool ConsoleCommand::setFunction(const ExecutorPtr& executor, bool bForce)
     {
         if (!executor || !executor->getFunctor() || bForce || this->headersMatch(executor))
         {
@@ -161,7 +161,7 @@
         }
     }
 
-    bool _ConsoleCommand::setFunction(const FunctorPtr& functor, bool bForce)
+    bool ConsoleCommand::setFunction(const FunctorPtr& functor, bool bForce)
     {
         if (!functor || bForce || this->headersMatch(functor))
         {
@@ -179,7 +179,7 @@
         }
     }
 
-    void _ConsoleCommand::pushFunction(const ExecutorPtr& executor, bool bForce)
+    void ConsoleCommand::pushFunction(const ExecutorPtr& executor, bool bForce)
     {
         Command command;
         command.executor_ = this->getExecutor();
@@ -190,7 +190,7 @@
             this->commandStack_.push(command);
     }
 
-    void _ConsoleCommand::pushFunction(const FunctorPtr& functor, bool bForce)
+    void ConsoleCommand::pushFunction(const FunctorPtr& functor, bool bForce)
     {
         Command command;
         command.executor_ = this->getExecutor();
@@ -201,7 +201,7 @@
             this->commandStack_.push(command);
     }
 
-    void _ConsoleCommand::pushFunction()
+    void ConsoleCommand::pushFunction()
     {
         if (this->executor_)
             this->pushFunction(new Executor(*this->executor_.get()));
@@ -209,7 +209,7 @@
             COUT(1) << "Error: Couldn't push copy of executor in console command \"" << this->baseName_ << "\", no executor set." << std::endl;
     }
 
-    void _ConsoleCommand::popFunction()
+    void ConsoleCommand::popFunction()
     {
         Command command;
         if (!this->commandStack_.empty())
@@ -223,18 +223,18 @@
             this->executor_->setFunctor(command.functor_);
     }
 
-    void _ConsoleCommand::resetFunction()
+    void ConsoleCommand::resetFunction()
     {
         if (this->executor_)
             this->executor_->setFunctor(0);
     }
 
-    const ExecutorPtr& _ConsoleCommand::getExecutor() const
+    const ExecutorPtr& ConsoleCommand::getExecutor() const
     {
         return this->executor_;
     }
 
-    bool _ConsoleCommand::setObject(void* object)
+    bool ConsoleCommand::setObject(void* object)
     {
         if (this->executor_)
         {
@@ -252,14 +252,14 @@
         return false;
     }
 
-    void _ConsoleCommand::pushObject(void* object)
+    void ConsoleCommand::pushObject(void* object)
     {
         void* oldobject = this->getObject();
         if (this->setObject(object))
             this->objectStack_.push(oldobject);
     }
 
-    void _ConsoleCommand::popObject()
+    void ConsoleCommand::popObject()
     {
         void* newobject = 0;
         if (!this->objectStack_.empty())
@@ -270,7 +270,7 @@
         this->setObject(newobject);
     }
 
-    void* _ConsoleCommand::getObject() const
+    void* ConsoleCommand::getObject() const
     {
         if (this->executor_ && this->executor_->getFunctor())
             return this->executor_->getFunctor()->getRawObjectPointer();
@@ -278,7 +278,7 @@
             return 0;
     }
 
-    _ConsoleCommand& _ConsoleCommand::defaultValues(const MultiType& param1)
+    ConsoleCommand& ConsoleCommand::defaultValues(const MultiType& param1)
     {
         if (this->executor_)
             this->executor_->setDefaultValues(param1);
@@ -288,7 +288,7 @@
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2)
+    ConsoleCommand& ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2)
     {
         if (this->executor_)
             this->executor_->setDefaultValues(param1, param2);
@@ -298,7 +298,7 @@
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3)
+    ConsoleCommand& ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3)
     {
         if (this->executor_)
             this->executor_->setDefaultValues(param1, param2, param3);
@@ -308,7 +308,7 @@
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4)
+    ConsoleCommand& ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4)
     {
         if (this->executor_)
             this->executor_->setDefaultValues(param1, param2, param3, param4);
@@ -318,7 +318,7 @@
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5)
+    ConsoleCommand& ConsoleCommand::defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5)
     {
         if (this->executor_)
             this->executor_->setDefaultValues(param1, param2, param3, param4, param5);
@@ -328,7 +328,7 @@
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::defaultValue(unsigned int index, const MultiType& param)
+    ConsoleCommand& ConsoleCommand::defaultValue(unsigned int index, const MultiType& param)
     {
         if (this->executor_)
             this->executor_->setDefaultValue(index, param);
@@ -338,7 +338,7 @@
         return *this;
     }
 
-    _ConsoleCommand& _ConsoleCommand::argumentCompleter(unsigned int param, ArgumentCompleter* completer)
+    ConsoleCommand& ConsoleCommand::argumentCompleter(unsigned int param, ArgumentCompleter* completer)
     {
         if (param < 5)
             this->argumentCompleter_[param] = completer;
@@ -348,7 +348,7 @@
         return *this;
     }
 
-    ArgumentCompleter* _ConsoleCommand::getArgumentCompleter(unsigned int param) const
+    ArgumentCompleter* ConsoleCommand::getArgumentCompleter(unsigned int param) const
     {
         if (param < 5)
             return this->argumentCompleter_[param];
@@ -356,19 +356,19 @@
             return 0;
     }
 
-    _ConsoleCommand& _ConsoleCommand::description(const std::string& description)
+    ConsoleCommand& ConsoleCommand::description(const std::string& description)
     {
         this->description_ = std::string("ConsoleCommandDescription::" + this->baseName_ + "::function");
         AddLanguageEntry(this->description_, description);
         return *this;
     }
 
-    const std::string& _ConsoleCommand::getDescription() const
+    const std::string& ConsoleCommand::getDescription() const
     {
         return GetLocalisation_noerror(this->description_);
     }
 
-    _ConsoleCommand& _ConsoleCommand::descriptionParam(unsigned int param, const std::string& description)
+    ConsoleCommand& ConsoleCommand::descriptionParam(unsigned int param, const std::string& description)
     {
         if (param < MAX_FUNCTOR_ARGUMENTS)
         {
@@ -378,7 +378,7 @@
         return *this;
     }
 
-    const std::string& _ConsoleCommand::getDescriptionParam(unsigned int param) const
+    const std::string& ConsoleCommand::getDescriptionParam(unsigned int param) const
     {
         if (param < MAX_FUNCTOR_ARGUMENTS)
             return GetLocalisation_noerror(this->descriptionParam_[param]);
@@ -386,24 +386,24 @@
         return this->descriptionParam_[0];
     }
 
-    _ConsoleCommand& _ConsoleCommand::descriptionReturnvalue(const std::string& description)
+    ConsoleCommand& ConsoleCommand::descriptionReturnvalue(const std::string& description)
     {
         this->descriptionReturnvalue_ = std::string("ConsoleCommandDescription::" + this->baseName_ + "::returnvalue");
         AddLanguageEntry(this->descriptionReturnvalue_, description);
         return *this;
     }
 
-    const std::string& _ConsoleCommand::getDescriptionReturnvalue(int param) const
+    const std::string& ConsoleCommand::getDescriptionReturnvalue(int param) const
     {
         return GetLocalisation_noerror(this->descriptionReturnvalue_);
     }
 
-    /* static */ _ConsoleCommand* _ConsoleCommand::getCommand(const std::string& group, const std::string& name, bool bPrintError)
+    /* static */ ConsoleCommand* ConsoleCommand::getCommand(const std::string& group, const std::string& name, bool bPrintError)
     {
-        std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = _ConsoleCommand::getCommandMap().find(group);
-        if (it_group != _ConsoleCommand::getCommandMap().end())
+        std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = ConsoleCommand::getCommandMap().find(group);
+        if (it_group != ConsoleCommand::getCommandMap().end())
         {
-            std::map<std::string, _ConsoleCommand*>::const_iterator it_name = it_group->second.find(name);
+            std::map<std::string, ConsoleCommand*>::const_iterator it_name = it_group->second.find(name);
             if (it_name != it_group->second.end())
             {
                 return it_name->second;
@@ -419,15 +419,15 @@
         return 0;
     }
 
-    /* static */ _ConsoleCommand* _ConsoleCommand::getCommandLC(const std::string& group, const std::string& name, bool bPrintError)
+    /* static */ ConsoleCommand* ConsoleCommand::getCommandLC(const std::string& group, const std::string& name, bool bPrintError)
     {
         std::string groupLC = getLowercase(group);
         std::string nameLC = getLowercase(name);
 
-        std::map<std::string, std::map<std::string, _ConsoleCommand*> >::const_iterator it_group = _ConsoleCommand::getCommandMapLC().find(groupLC);
-        if (it_group != _ConsoleCommand::getCommandMapLC().end())
+        std::map<std::string, std::map<std::string, ConsoleCommand*> >::const_iterator it_group = ConsoleCommand::getCommandMapLC().find(groupLC);
+        if (it_group != ConsoleCommand::getCommandMapLC().end())
         {
-            std::map<std::string, _ConsoleCommand*>::const_iterator it_name = it_group->second.find(nameLC);
+            std::map<std::string, ConsoleCommand*>::const_iterator it_name = it_group->second.find(nameLC);
             if (it_name != it_group->second.end())
             {
                 return it_name->second;
@@ -443,24 +443,24 @@
         return 0;
     }
 
-    /* static */ std::map<std::string, std::map<std::string, _ConsoleCommand*> >& _ConsoleCommand::getCommandMap()
+    /* static */ std::map<std::string, std::map<std::string, ConsoleCommand*> >& ConsoleCommand::getCommandMap()
     {
-        static std::map<std::string, std::map<std::string, _ConsoleCommand*> > commandMap;
+        static std::map<std::string, std::map<std::string, ConsoleCommand*> > commandMap;
         return commandMap;
     }
 
-    /* static */ std::map<std::string, std::map<std::string, _ConsoleCommand*> >& _ConsoleCommand::getCommandMapLC()
+    /* static */ std::map<std::string, std::map<std::string, ConsoleCommand*> >& ConsoleCommand::getCommandMapLC()
     {
-        static std::map<std::string, std::map<std::string, _ConsoleCommand*> > commandMapLC;
+        static std::map<std::string, std::map<std::string, ConsoleCommand*> > commandMapLC;
         return commandMapLC;
     }
 
-    /* static */ void _ConsoleCommand::registerCommand(const std::string& group, const std::string& name, _ConsoleCommand* command)
+    /* static */ void ConsoleCommand::registerCommand(const std::string& group, const std::string& name, ConsoleCommand* command)
     {
         if (name == "")
             return;
 
-        if (_ConsoleCommand::getCommand(group, name) != 0)
+        if (ConsoleCommand::getCommand(group, name) != 0)
         {
             if (group == "")
                 COUT(2) << "Warning: A console command with shortcut \"" << name << "\" already exists." << std::endl;
@@ -469,16 +469,16 @@
         }
         else
         {
-            _ConsoleCommand::getCommandMap()[group][name] = command;
-            _ConsoleCommand::getCommandMapLC()[getLowercase(group)][getLowercase(name)] = command;
+            ConsoleCommand::getCommandMap()[group][name] = command;
+            ConsoleCommand::getCommandMapLC()[getLowercase(group)][getLowercase(name)] = command;
         }
     }
 
-    /* static */ void _ConsoleCommand::unregisterCommand(_ConsoleCommand* command)
+    /* static */ void ConsoleCommand::unregisterCommand(ConsoleCommand* command)
     {
-        for (std::map<std::string, std::map<std::string, _ConsoleCommand*> >::iterator it_group = _ConsoleCommand::getCommandMap().begin(); it_group != _ConsoleCommand::getCommandMap().end(); )
+        for (std::map<std::string, std::map<std::string, ConsoleCommand*> >::iterator it_group = ConsoleCommand::getCommandMap().begin(); it_group != ConsoleCommand::getCommandMap().end(); )
         {
-            for (std::map<std::string, _ConsoleCommand*>::iterator it_name = it_group->second.begin(); it_name != it_group->second.end(); )
+            for (std::map<std::string, ConsoleCommand*>::iterator it_name = it_group->second.begin(); it_name != it_group->second.end(); )
             {
                 if (it_name->second == command)
                     it_group->second.erase(it_name++);
@@ -487,14 +487,14 @@
             }
 
             if (it_group->second.empty())
-                _ConsoleCommand::getCommandMap().erase(it_group++);
+                ConsoleCommand::getCommandMap().erase(it_group++);
             else
                 ++it_group;
         }
 
-        for (std::map<std::string, std::map<std::string, _ConsoleCommand*> >::iterator it_group = _ConsoleCommand::getCommandMapLC().begin(); it_group != _ConsoleCommand::getCommandMapLC().end(); )
+        for (std::map<std::string, std::map<std::string, ConsoleCommand*> >::iterator it_group = ConsoleCommand::getCommandMapLC().begin(); it_group != ConsoleCommand::getCommandMapLC().end(); )
         {
-            for (std::map<std::string, _ConsoleCommand*>::iterator it_name = it_group->second.begin(); it_name != it_group->second.end(); )
+            for (std::map<std::string, ConsoleCommand*>::iterator it_name = it_group->second.begin(); it_name != it_group->second.end(); )
             {
                 if (it_name->second == command)
                     it_group->second.erase(it_name++);
@@ -503,15 +503,15 @@
             }
 
             if (it_group->second.empty())
-                _ConsoleCommand::getCommandMapLC().erase(it_group++);
+                ConsoleCommand::getCommandMapLC().erase(it_group++);
             else
                 ++it_group;
         }
     }
 
-    /* static */ void _ConsoleCommand::destroyAll()
+    /* static */ void ConsoleCommand::destroyAll()
     {
-        while (!_ConsoleCommand::getCommandMap().empty() && !_ConsoleCommand::getCommandMap().begin()->second.empty())
-            delete _ConsoleCommand::getCommandMap().begin()->second.begin()->second;
+        while (!ConsoleCommand::getCommandMap().empty() && !ConsoleCommand::getCommandMap().begin()->second.empty())
+            delete ConsoleCommand::getCommandMap().begin()->second.begin()->second;
     }
 }

Modified: code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h	2010-08-27 23:51:04 UTC (rev 7236)
@@ -40,30 +40,30 @@
 #include "Executor.h"
 
 
-#define _SetConsoleCommand(...) \
-    BOOST_PP_EXPAND(BOOST_PP_CAT(_SetConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__))
-#define _SetConsoleCommand2(name, functionpointer) \
-    _SetConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer))
-#define _SetConsoleCommand3(group, name, functionpointer) \
-    _SetConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer))
-#define _SetConsoleCommand4(group, name, functionpointer, object) \
-    _SetConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer, object))
+#define SetConsoleCommand(...) \
+    BOOST_PP_EXPAND(BOOST_PP_CAT(SetConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__))
+#define SetConsoleCommand2(name, functionpointer) \
+    SetConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer))
+#define SetConsoleCommand3(group, name, functionpointer) \
+    SetConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer))
+#define SetConsoleCommand4(group, name, functionpointer, object) \
+    SetConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer, object))
 
-#define _SetConsoleCommandGeneric(group, name, functor) \
-    static orxonox::_ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __LINE__) = (*orxonox::_createConsoleCommand(group, name, orxonox::createExecutor(functor)))
+#define SetConsoleCommandGeneric(group, name, functor) \
+    static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __LINE__) = (*orxonox::createConsoleCommand(group, name, orxonox::createExecutor(functor)))
 
 
-#define _DeclareConsoleCommand(...) \
-    BOOST_PP_CAT(_DeclareConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__)
-#define _DeclareConsoleCommand2(name, functionpointer) \
-    _DeclareConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer))
-#define _DeclareConsoleCommand3(group, name, functionpointer) \
-    _DeclareConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer))
-#define _DeclareConsoleCommand4(group, name, functionpointer, object) \
-    _DeclareConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer, object))
+#define DeclareConsoleCommand(...) \
+    BOOST_PP_CAT(DeclareConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__)
+#define DeclareConsoleCommand2(name, functionpointer) \
+    DeclareConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer))
+#define DeclareConsoleCommand3(group, name, functionpointer) \
+    DeclareConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer))
+#define DeclareConsoleCommand4(group, name, functionpointer, object) \
+    DeclareConsoleCommandGeneric(group, name, orxonox::createFunctor(functionpointer, object))
 
-#define _DeclareConsoleCommandGeneric(group, name, functor) \
-    static orxonox::_ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __LINE__) = (*orxonox::_createConsoleCommand(group, name, orxonox::createExecutor(functor), false))
+#define DeclareConsoleCommandGeneric(group, name, functor) \
+    static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __LINE__) = (*orxonox::createConsoleCommand(group, name, orxonox::createExecutor(functor), false))
 
 
 namespace orxonox
@@ -89,9 +89,9 @@
         };
     }
 
-    class _CoreExport _ConsoleCommand
+    class _CoreExport ConsoleCommand
     {
-        friend struct _ConsoleCommandManipulator;
+        friend struct ConsoleCommandManipulator;
 
         struct Command
         {
@@ -100,13 +100,13 @@
         };
 
         public:
-            struct _ConsoleCommandManipulator
+            struct ConsoleCommandManipulator
             {
                 public:
-                    _ConsoleCommandManipulator(const _ConsoleCommand* command) : command_(const_cast<_ConsoleCommand*>(command)) {}
+                    ConsoleCommandManipulator(const ConsoleCommand* command) : command_(const_cast<ConsoleCommand*>(command)) {}
 
                     template <class F>
-                    inline _ConsoleCommandManipulator& setFunction(F function, bool bForce = false)
+                    inline ConsoleCommandManipulator& setFunction(F function, bool bForce = false)
                         {
                             if (this->command_)
                             {
@@ -121,7 +121,7 @@
                             return *this;
                         }
                     template <class F, class O>
-                    inline _ConsoleCommandManipulator& setFunction(F function, O* object, bool bForce = false)
+                    inline ConsoleCommandManipulator& setFunction(F function, O* object, bool bForce = false)
                         {
                             if (this->command_)
                             {
@@ -136,87 +136,87 @@
                             }
                             return *this;
                         }
-                    inline _ConsoleCommandManipulator& setFunction(const FunctorPtr& functor, bool bForce = false)
+                    inline ConsoleCommandManipulator& setFunction(const FunctorPtr& functor, bool bForce = false)
                         { if (this->command_) { this->command_->setFunction(functor, bForce); } return *this; }
-                    inline _ConsoleCommandManipulator& setFunction(const ExecutorPtr& executor, bool bForce = false)
+                    inline ConsoleCommandManipulator& setFunction(const ExecutorPtr& executor, bool bForce = false)
                         { if (this->command_) { this->command_->setFunction(executor, bForce); } return *this; }
 
                     template <class F>
-                    inline _ConsoleCommandManipulator& pushFunction(F function, bool bForce = false)
+                    inline ConsoleCommandManipulator& pushFunction(F function, bool bForce = false)
                         { if (this->command_) { this->command_->pushFunction(createFunctor(function), bForce); } return *this; }
                     template <class F, class O>
-                    inline _ConsoleCommandManipulator& pushFunction(F function, O* object, bool bForce = false)
+                    inline ConsoleCommandManipulator& pushFunction(F function, O* object, bool bForce = false)
                         { if (this->command_) { this->command_->pushFunction(createFunctor(function, object), bForce); } return *this; }
-                    inline _ConsoleCommandManipulator& pushFunction(const FunctorPtr& functor, bool bForce = false)
+                    inline ConsoleCommandManipulator& pushFunction(const FunctorPtr& functor, bool bForce = false)
                         { if (this->command_) { this->command_->pushFunction(functor, bForce); } return *this; }
-                    inline _ConsoleCommandManipulator& pushFunction(const ExecutorPtr& executor, bool bForce = false)
+                    inline ConsoleCommandManipulator& pushFunction(const ExecutorPtr& executor, bool bForce = false)
                         { if (this->command_) { this->command_->pushFunction(executor, bForce); } return *this; }
 
-                    inline _ConsoleCommandManipulator& popFunction()
+                    inline ConsoleCommandManipulator& popFunction()
                         { if (this->command_) { this->command_->popFunction(); } return *this; }
 
-                    inline _ConsoleCommandManipulator& resetFunction()
+                    inline ConsoleCommandManipulator& resetFunction()
                         { if (this->command_) { this->command_->resetFunction(); } return *this; }
 
-                    inline _ConsoleCommandManipulator& setObject(void* object)
+                    inline ConsoleCommandManipulator& setObject(void* object)
                         { if (this->command_) { this->command_->setObject(object); } return *this; }
-                    inline _ConsoleCommandManipulator& pushObject(void* object)
+                    inline ConsoleCommandManipulator& pushObject(void* object)
                         { if (this->command_) { this->command_->pushObject(object); } return *this; }
-                    inline _ConsoleCommandManipulator& popObject()
+                    inline ConsoleCommandManipulator& popObject()
                         { if (this->command_) { this->command_->popObject(); } return *this; }
 
-                    inline _ConsoleCommandManipulator& setActive(bool bActive)
+                    inline ConsoleCommandManipulator& setActive(bool bActive)
                         { if (this->command_) { this->command_->setActive(bActive); } return *this; }
-                    inline _ConsoleCommandManipulator& activate()
+                    inline ConsoleCommandManipulator& activate()
                         { return this->setActive(true); }
-                    inline _ConsoleCommandManipulator& deactivate()
+                    inline ConsoleCommandManipulator& deactivate()
                         { return this->setActive(false); }
 
-                    inline _ConsoleCommandManipulator& setHidden(bool bHidden)
+                    inline ConsoleCommandManipulator& setHidden(bool bHidden)
                         { if (this->command_) { this->command_->setHidden(bHidden); } return *this; }
-                    inline _ConsoleCommandManipulator& hide()
+                    inline ConsoleCommandManipulator& hide()
                         { return this->setHidden(true); }
-                    inline _ConsoleCommandManipulator& show()
+                    inline ConsoleCommandManipulator& show()
                         { return this->setHidden(false); }
 
-                    inline _ConsoleCommandManipulator& defaultValues(const MultiType& param1)
+                    inline ConsoleCommandManipulator& defaultValues(const MultiType& param1)
                         { if (this->command_) { this->command_->defaultValues(param1); } return *this; }
-                    inline _ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2)
+                    inline ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2)
                         { if (this->command_) { this->command_->defaultValues(param1, param2); } return *this; }
-                    inline _ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3)
+                    inline ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3)
                         { if (this->command_) { this->command_->defaultValues(param1, param2, param3); } return *this; }
-                    inline _ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4)
+                    inline ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4)
                         { if (this->command_) { this->command_->defaultValues(param1, param2, param3, param4); } return *this; }
-                    inline _ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5)
+                    inline ConsoleCommandManipulator& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5)
                         { if (this->command_) { this->command_->defaultValues(param1, param2, param3, param4, param5); } return *this; }
-                    inline _ConsoleCommandManipulator& defaultValue(unsigned int index, const MultiType& param)
+                    inline ConsoleCommandManipulator& defaultValue(unsigned int index, const MultiType& param)
                         { if (this->command_) { this->command_->defaultValue(index, param); } return *this; }
 
-                    inline _ConsoleCommandManipulator& accessLevel(AccessLevel::Enum level)
+                    inline ConsoleCommandManipulator& accessLevel(AccessLevel::Enum level)
                         { if (this->command_) { this->command_->accessLevel(level); } return *this; }
 
-                    inline _ConsoleCommandManipulator& argumentCompleter(unsigned int param, ArgumentCompleter* completer)
+                    inline ConsoleCommandManipulator& argumentCompleter(unsigned int param, ArgumentCompleter* completer)
                         { if (this->command_) { this->command_->argumentCompleter(param, completer); } return *this; }
 
-                    inline _ConsoleCommandManipulator& setAsInputCommand()
+                    inline ConsoleCommandManipulator& setAsInputCommand()
                         { if (this->command_) { this->command_->setAsInputCommand(); } return *this; }
-                    inline _ConsoleCommandManipulator& keybindMode(KeybindMode::Value mode)
+                    inline ConsoleCommandManipulator& keybindMode(KeybindMode::Value mode)
                         { if (this->command_) { this->command_->keybindMode(mode); } return *this; }
-                    inline _ConsoleCommandManipulator& inputConfiguredParam(int index)
+                    inline ConsoleCommandManipulator& inputConfiguredParam(int index)
                         { if (this->command_) { this->command_->inputConfiguredParam(index); } return *this; }
 
                 private:
-                    _ConsoleCommand* command_;
+                    ConsoleCommand* command_;
             };
 
         public:
-            _ConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized = true);
-            ~_ConsoleCommand();
+            ConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized = true);
+            ~ConsoleCommand();
 
-            _ConsoleCommand& addShortcut();
-            _ConsoleCommand& addShortcut(const std::string&  name);
-            _ConsoleCommand& addGroup(const std::string& group);
-            _ConsoleCommand& addGroup(const std::string& group, const std::string&  name);
+            ConsoleCommand& addShortcut();
+            ConsoleCommand& addShortcut(const std::string&  name);
+            ConsoleCommand& addGroup(const std::string& group);
+            ConsoleCommand& addGroup(const std::string& group, const std::string&  name);
 
             inline const std::string& getName() const
                 { return this->baseName_; }
@@ -225,18 +225,18 @@
             inline const ExecutorPtr& getBaseExecutor() const
                 { return this->baseExecutor_; }
 
-            inline _ConsoleCommand& setActive(bool bActive)
+            inline ConsoleCommand& setActive(bool bActive)
                 { this->bActive_ = bActive; return *this; }
-            inline _ConsoleCommand& activate()
+            inline ConsoleCommand& activate()
                 { return this->setActive(true); }
-            inline _ConsoleCommand& deactivate()
+            inline ConsoleCommand& deactivate()
                 { return this->setActive(false); }
 
-            inline _ConsoleCommand& setHidden(bool bHidden)
+            inline ConsoleCommand& setHidden(bool bHidden)
                 { this->bHidden_ = bHidden; return *this; }
-            inline _ConsoleCommand& hide()
+            inline ConsoleCommand& hide()
                 { return this->setHidden(true); }
-            inline _ConsoleCommand& show()
+            inline ConsoleCommand& show()
                 { return this->setHidden(false); }
 
             bool isActive() const;
@@ -244,31 +244,31 @@
             inline bool isHidden() const
                 { return this->bHidden_; }
 
-            _ConsoleCommand& description(const std::string& description);
+            ConsoleCommand& description(const std::string& description);
             const std::string& getDescription() const;
 
-            _ConsoleCommand& descriptionParam(unsigned int param, const std::string& description);
+            ConsoleCommand& descriptionParam(unsigned int param, const std::string& description);
             const std::string& getDescriptionParam(unsigned int param) const;
 
-            _ConsoleCommand& descriptionReturnvalue(const std::string& description);
+            ConsoleCommand& descriptionReturnvalue(const std::string& description);
             const std::string& getDescriptionReturnvalue(int param) const;
 
-            _ConsoleCommand& defaultValues(const MultiType& param1);
-            _ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2);
-            _ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3);
-            _ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4);
-            _ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5);
-            _ConsoleCommand& defaultValue(unsigned int index, const MultiType& param);
+            ConsoleCommand& defaultValues(const MultiType& param1);
+            ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2);
+            ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3);
+            ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4);
+            ConsoleCommand& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5);
+            ConsoleCommand& defaultValue(unsigned int index, const MultiType& param);
 
-            inline _ConsoleCommand& accessLevel(AccessLevel::Enum level)
+            inline ConsoleCommand& accessLevel(AccessLevel::Enum level)
                 { this->accessLevel_ = level; return *this; }
             inline AccessLevel::Enum getAccessLevel() const
                 { return this->accessLevel_; }
 
-            _ConsoleCommand& argumentCompleter(unsigned int param, ArgumentCompleter* completer);
+            ConsoleCommand& argumentCompleter(unsigned int param, ArgumentCompleter* completer);
             ArgumentCompleter* getArgumentCompleter(unsigned int param) const;
 
-            inline _ConsoleCommand& setAsInputCommand()
+            inline ConsoleCommand& setAsInputCommand()
             {
                 this->keybindMode(KeybindMode::OnHold);
                 this->defaultValue(0, Vector2(0.0f, 0.0f));
@@ -276,17 +276,17 @@
                 return *this;
             }
 
-            inline _ConsoleCommand& keybindMode(KeybindMode::Value mode)
+            inline ConsoleCommand& keybindMode(KeybindMode::Value mode)
                 { this->keybindMode_ = mode; return *this; }
             inline KeybindMode::Value getKeybindMode() const
                 { return this->keybindMode_; }
 
-            inline _ConsoleCommand& inputConfiguredParam(int index)
+            inline ConsoleCommand& inputConfiguredParam(int index)
                 { this->inputConfiguredParam_ = index; return *this; }
             inline int getInputConfiguredParam_() const
                 { return this->inputConfiguredParam_; }
 
-            inline _ConsoleCommandManipulator getManipulator() const
+            inline ConsoleCommandManipulator getManipulator() const
                 { return this; }
 
         private:
@@ -326,38 +326,38 @@
             LanguageEntryLabel descriptionParam_[MAX_FUNCTOR_ARGUMENTS];
 
         public:
-            static inline const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommands()
-                { return _ConsoleCommand::getCommandMap(); }
-            static inline const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandsLC()
-                { return _ConsoleCommand::getCommandMapLC(); }
+            static inline const std::map<std::string, std::map<std::string, ConsoleCommand*> >& getCommands()
+                { return ConsoleCommand::getCommandMap(); }
+            static inline const std::map<std::string, std::map<std::string, ConsoleCommand*> >& getCommandsLC()
+                { return ConsoleCommand::getCommandMapLC(); }
 
-            static inline _ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)
-                { return _ConsoleCommand::getCommand("", name, bPrintError); }
-            static inline _ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)
-                { return _ConsoleCommand::getCommandLC("", name, bPrintError); }
+            static inline ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)
+                { return ConsoleCommand::getCommand("", name, bPrintError); }
+            static inline ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)
+                { return ConsoleCommand::getCommandLC("", name, bPrintError); }
 
-            static _ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);
-            static _ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);
+            static ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);
+            static ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);
 
             static void destroyAll();
 
         private:
-            static std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandMap();
-            static std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandMapLC();
+            static std::map<std::string, std::map<std::string, ConsoleCommand*> >& getCommandMap();
+            static std::map<std::string, std::map<std::string, ConsoleCommand*> >& getCommandMapLC();
 
-            static void registerCommand(const std::string& group, const std::string& name, _ConsoleCommand* command);
-            static void unregisterCommand(_ConsoleCommand* command);
+            static void registerCommand(const std::string& group, const std::string& name, ConsoleCommand* command);
+            static void unregisterCommand(ConsoleCommand* command);
     };
 
-    inline _ConsoleCommand* _createConsoleCommand(const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)
-        { return new _ConsoleCommand("", name, executor, bInitialized); }
-    inline _ConsoleCommand* _createConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)
-        { return new _ConsoleCommand(group, name, executor, bInitialized); }
+    inline ConsoleCommand* createConsoleCommand(const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)
+        { return new ConsoleCommand("", name, executor, bInitialized); }
+    inline ConsoleCommand* createConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)
+        { return new ConsoleCommand(group, name, executor, bInitialized); }
 
-    inline _ConsoleCommand::_ConsoleCommandManipulator _ModifyConsoleCommand(const std::string& name)
-        { return _ConsoleCommand::getCommand(name, true); }
-    inline _ConsoleCommand::_ConsoleCommandManipulator _ModifyConsoleCommand(const std::string& group, const std::string& name)
-        { return _ConsoleCommand::getCommand(group, name, true); }
+    inline ConsoleCommand::ConsoleCommandManipulator ModifyConsoleCommand(const std::string& name)
+        { return ConsoleCommand::getCommand(name, true); }
+    inline ConsoleCommand::ConsoleCommandManipulator ModifyConsoleCommand(const std::string& group, const std::string& name)
+        { return ConsoleCommand::getCommand(group, name, true); }
 }
 
 #endif /* _ConsoleCommand_H__ */

Modified: code/branches/consolecommands3/src/libraries/core/command/ConsoleCommandCompilation.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/ConsoleCommandCompilation.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/ConsoleCommandCompilation.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -40,15 +40,15 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("source", source).argumentCompleter(0, autocompletion::files());
-    _SetConsoleCommand("echo", echo);
-    _SetConsoleCommand("puts", puts);
+    SetConsoleCommand("source", source).argumentCompleter(0, autocompletion::files());
+    SetConsoleCommand("echo", echo);
+    SetConsoleCommand("puts", puts);
 
-    _SetConsoleCommand("read", read).argumentCompleter(0, autocompletion::files());
-    _SetConsoleCommand("append", append).argumentCompleter(0, autocompletion::files());
-    _SetConsoleCommand("write", write).argumentCompleter(0, autocompletion::files());
+    SetConsoleCommand("read", read).argumentCompleter(0, autocompletion::files());
+    SetConsoleCommand("append", append).argumentCompleter(0, autocompletion::files());
+    SetConsoleCommand("write", write).argumentCompleter(0, autocompletion::files());
 
-    _SetConsoleCommand("calculate", calculate);
+    SetConsoleCommand("calculate", calculate);
 
     void source(const std::string& filename)
     {

Modified: code/branches/consolecommands3/src/libraries/core/command/IRC.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/IRC.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/IRC.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -41,9 +41,9 @@
 {
     static const unsigned int IRC_TCL_THREADID  = 1421421421;
 
-    _SetConsoleCommand("IRC", "say",  &IRC::say);
-    _SetConsoleCommand("IRC", "msg",  &IRC::msg);
-    _SetConsoleCommand("IRC", "nick", &IRC::nick);
+    SetConsoleCommand("IRC", "say",  &IRC::say);
+    SetConsoleCommand("IRC", "msg",  &IRC::msg);
+    SetConsoleCommand("IRC", "nick", &IRC::nick);
 
     IRC::IRC()
     {

Modified: code/branches/consolecommands3/src/libraries/core/command/Shell.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/Shell.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/Shell.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -39,11 +39,11 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("log",     OutputHandler::log    );
-    _SetConsoleCommand("error",   OutputHandler::error  );
-    _SetConsoleCommand("warning", OutputHandler::warning);
-    _SetConsoleCommand("info",    OutputHandler::info   );
-    _SetConsoleCommand("debug",   OutputHandler::debug  );
+    SetConsoleCommand("log",     OutputHandler::log    );
+    SetConsoleCommand("error",   OutputHandler::error  );
+    SetConsoleCommand("warning", OutputHandler::warning);
+    SetConsoleCommand("info",    OutputHandler::info   );
+    SetConsoleCommand("debug",   OutputHandler::debug  );
 
     unsigned int Shell::cacheSize_s;
 

Modified: code/branches/consolecommands3/src/libraries/core/command/TclBind.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/TclBind.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/TclBind.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -43,8 +43,8 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("tcl", &TclBind::tcl);
-    _SetConsoleCommand("bgerror", &TclBind::bgerror);
+    SetConsoleCommand("tcl", &TclBind::tcl);
+    SetConsoleCommand("bgerror", &TclBind::bgerror);
 
     TclBind* TclBind::singletonPtr_s = 0;
 

Modified: code/branches/consolecommands3/src/libraries/core/command/TclThreadManager.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/command/TclThreadManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/command/TclThreadManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -49,13 +49,13 @@
 {
     const float TCLTHREADMANAGER_MAX_CPU_USAGE = 0.50f;
 
-    _SetConsoleCommand("tclexecute", &TclThreadManager::execute).argumentCompleter(0, autocompletion::tclthreads());
-    _SetConsoleCommand("tclquery",   &TclThreadManager::query  ).argumentCompleter(0, autocompletion::tclthreads());
-    _SetConsoleCommand("TclThreadManager", "create",  &TclThreadManager::create);
-    _SetConsoleCommand("TclThreadManager", "destroy", &TclThreadManager::destroy).argumentCompleter(0, autocompletion::tclthreads());
-    _SetConsoleCommand("TclThreadManager", "execute", &TclThreadManager::execute).argumentCompleter(0, autocompletion::tclthreads());
-    _SetConsoleCommand("TclThreadManager", "query",   &TclThreadManager::query  ).argumentCompleter(0, autocompletion::tclthreads());
-    _SetConsoleCommand("TclThreadManager", "source",  &TclThreadManager::source ).argumentCompleter(0, autocompletion::tclthreads());
+    SetConsoleCommand("tclexecute", &TclThreadManager::execute).argumentCompleter(0, autocompletion::tclthreads());
+    SetConsoleCommand("tclquery",   &TclThreadManager::query  ).argumentCompleter(0, autocompletion::tclthreads());
+    SetConsoleCommand("TclThreadManager", "create",  &TclThreadManager::create);
+    SetConsoleCommand("TclThreadManager", "destroy", &TclThreadManager::destroy).argumentCompleter(0, autocompletion::tclthreads());
+    SetConsoleCommand("TclThreadManager", "execute", &TclThreadManager::execute).argumentCompleter(0, autocompletion::tclthreads());
+    SetConsoleCommand("TclThreadManager", "query",   &TclThreadManager::query  ).argumentCompleter(0, autocompletion::tclthreads());
+    SetConsoleCommand("TclThreadManager", "source",  &TclThreadManager::source ).argumentCompleter(0, autocompletion::tclthreads());
 
     /**
         @brief A struct containing all information about a Tcl-interpreter

Modified: code/branches/consolecommands3/src/libraries/core/input/InputManager.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/input/InputManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/input/InputManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -65,8 +65,8 @@
     static const std::string __CC_calibrate_name = "calibrate";
     static const std::string __CC_reload_name = "reload";
 
-    _SetConsoleCommand(__CC_InputManager_name, __CC_calibrate_name, &InputManager::calibrate).addShortcut();
-    _SetConsoleCommand(__CC_InputManager_name, __CC_reload_name,    &InputManager::reload   );
+    SetConsoleCommand(__CC_InputManager_name, __CC_calibrate_name, &InputManager::calibrate).addShortcut();
+    SetConsoleCommand(__CC_InputManager_name, __CC_reload_name,    &InputManager::reload   );
 
     // Abuse of this source file for the InputHandler
     InputHandler InputHandler::EMPTY;
@@ -124,8 +124,8 @@
 
         this->updateActiveStates();
 
-        _ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(this);
-        _ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(this);
+        ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(this);
+        ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(this);
 
         CCOUT(4) << "Construction complete." << std::endl;
         internalState_ = Nothing;
@@ -293,8 +293,8 @@
             this->destroyDevices();
 
         // Reset console commands
-        _ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(0);
-        _ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(0);
+        ModifyConsoleCommand(__CC_InputManager_name, __CC_calibrate_name).setObject(0);
+        ModifyConsoleCommand(__CC_InputManager_name, __CC_reload_name).setObject(0);
 
         CCOUT(3) << "Destruction complete." << std::endl;
     }

Modified: code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -47,10 +47,10 @@
     static const std::string __CC_unbind_name = "unbind";
     static const std::string __CC_tunbind_name = "tunbind";
 
-    _SetConsoleCommand(__CC_keybind_name,  &KeyBinderManager::keybind).defaultValues("");
-    _SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues("");
-    _SetConsoleCommand(__CC_unbind_name,   &KeyBinderManager::unbind).defaultValues("");
-    _SetConsoleCommand(__CC_tunbind_name,  &KeyBinderManager::tunbind).defaultValues("");
+    SetConsoleCommand(__CC_keybind_name,  &KeyBinderManager::keybind).defaultValues("");
+    SetConsoleCommand(__CC_tkeybind_name, &KeyBinderManager::tkeybind).defaultValues("");
+    SetConsoleCommand(__CC_unbind_name,   &KeyBinderManager::unbind).defaultValues("");
+    SetConsoleCommand(__CC_tunbind_name,  &KeyBinderManager::tunbind).defaultValues("");
 
     KeyBinderManager::KeyBinderManager()
         : currentBinder_(NULL)
@@ -61,10 +61,10 @@
         this->setConfigValues();
 
         // keybind console commands
-        _ModifyConsoleCommand(__CC_keybind_name ).setObject(this);
-        _ModifyConsoleCommand(__CC_tkeybind_name).setObject(this);
-        _ModifyConsoleCommand(__CC_unbind_name  ).setObject(this);
-        _ModifyConsoleCommand(__CC_tunbind_name ).setObject(this);
+        ModifyConsoleCommand(__CC_keybind_name ).setObject(this);
+        ModifyConsoleCommand(__CC_tkeybind_name).setObject(this);
+        ModifyConsoleCommand(__CC_unbind_name  ).setObject(this);
+        ModifyConsoleCommand(__CC_tunbind_name ).setObject(this);
 
         // Load default key binder
         this->setCurrent(defaultFilename_);
@@ -77,10 +77,10 @@
             delete it->second;
 
         // Reset console commands
-        _ModifyConsoleCommand(__CC_keybind_name ).setObject(0);
-        _ModifyConsoleCommand(__CC_tkeybind_name).setObject(0);
-        _ModifyConsoleCommand(__CC_unbind_name  ).setObject(0);
-        _ModifyConsoleCommand(__CC_tunbind_name ).setObject(0);
+        ModifyConsoleCommand(__CC_keybind_name ).setObject(0);
+        ModifyConsoleCommand(__CC_tkeybind_name).setObject(0);
+        ModifyConsoleCommand(__CC_unbind_name  ).setObject(0);
+        ModifyConsoleCommand(__CC_tunbind_name ).setObject(0);
     }
 
     void KeyBinderManager::setConfigValues()

Modified: code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -40,14 +40,14 @@
     ManageScopedSingleton(KeyDetector, ScopeID::Graphics, false);
 
     static const std::string __CC_KeyDetector_callback_name = "KeyDetectorKeyPressed";
-    _DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string);
+    DeclareConsoleCommand(__CC_KeyDetector_callback_name, &prototype::void__string);
 
     KeyDetector::KeyDetector()
         : KeyBinder("")
     {
         RegisterObject(KeyDetector);
 
-        _ModifyConsoleCommand(__CC_KeyDetector_callback_name).setFunction(&KeyDetector::callback, this);
+        ModifyConsoleCommand(__CC_KeyDetector_callback_name).setFunction(&KeyDetector::callback, this);
 
         this->assignCommands();
 
@@ -61,7 +61,7 @@
     {
         inputState_->setHandler(NULL);
         InputManager::getInstance().destroyState("detector");
-        _ModifyConsoleCommand(__CC_KeyDetector_callback_name).resetFunction();
+        ModifyConsoleCommand(__CC_KeyDetector_callback_name).resetFunction();
     }
 
     void KeyDetector::assignCommands()

Modified: code/branches/consolecommands3/src/libraries/core/input/Mouse.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/core/input/Mouse.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/core/input/Mouse.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -45,8 +45,8 @@
     static const std::string __CC_grab_name = "grab";
     static const std::string __CC_ungrab_name = "ungrab";
 
-    _SetConsoleCommand(__CC_Mouse_name, __CC_grab_name,   &Mouse::grab);
-    _SetConsoleCommand(__CC_Mouse_name, __CC_ungrab_name, &Mouse::ungrab);
+    SetConsoleCommand(__CC_Mouse_name, __CC_grab_name,   &Mouse::grab);
+    SetConsoleCommand(__CC_Mouse_name, __CC_ungrab_name, &Mouse::ungrab);
 #endif
 
     Mouse::Mouse(unsigned int id, OIS::InputManager* oisInputManager)
@@ -56,16 +56,16 @@
         this->windowResized(this->getWindowWidth(), this->getWindowHeight());
 
 #ifdef ORXONOX_PLATFORM_LINUX
-        _ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(this);
-        _ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(this);
+        ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(this);
+        ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(this);
 #endif
     }
 
     Mouse::~Mouse()
     {
 #ifdef ORXONOX_PLATFORM_LINUX
-        _ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(0);
-        _ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(0);
+        ModifyConsoleCommand(__CC_Mouse_name, __CC_grab_name).setObject(0);
+        ModifyConsoleCommand(__CC_Mouse_name, __CC_ungrab_name).setObject(0);
 #endif
     }
 

Modified: code/branches/consolecommands3/src/libraries/network/Host.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/network/Host.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/network/Host.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -39,8 +39,8 @@
 
   static const std::string __CC_printRTT_name = "printRTT";
 
-  _SetConsoleCommand("chat", &Host::Chat);
-  _SetConsoleCommand(__CC_printRTT_name, &Host::printRTT);
+  SetConsoleCommand("chat", &Host::Chat);
+  SetConsoleCommand(__CC_printRTT_name, &Host::printRTT);
 
   // Host*               Host::instance_=0;
   uint32_t            Host::clientID_s=0;
@@ -54,7 +54,7 @@
   {
   //   assert(instance_==0);
     instances_s.push_back(this);
-    _ModifyConsoleCommand(__CC_printRTT_name).setObject(this);
+    ModifyConsoleCommand(__CC_printRTT_name).setObject(this);
     this->bIsActive_ = false;
   }
 
@@ -66,7 +66,7 @@
   {
     assert( std::find( instances_s.begin(), instances_s.end(), this )!=instances_s.end() );
     instances_s.erase(std::find( instances_s.begin(), instances_s.end(), this ));
-    _ModifyConsoleCommand(__CC_printRTT_name).setObject(0);
+    ModifyConsoleCommand(__CC_printRTT_name).setObject(0);
   }
 
   /**

Modified: code/branches/consolecommands3/src/libraries/tools/Timer.cc
===================================================================
--- code/branches/consolecommands3/src/libraries/tools/Timer.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/libraries/tools/Timer.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -38,8 +38,8 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("delay", &delay).argumentCompleter(1, autocompletion::command());
-    _SetConsoleCommand("killdelays", &killdelays);
+    SetConsoleCommand("delay", &delay).argumentCompleter(1, autocompletion::command());
+    SetConsoleCommand("killdelays", &killdelays);
 
     static std::set<Timer*> delaytimerset;
 

Modified: code/branches/consolecommands3/src/modules/designtools/ScreenshotManager.cc
===================================================================
--- code/branches/consolecommands3/src/modules/designtools/ScreenshotManager.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/modules/designtools/ScreenshotManager.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -19,7 +19,7 @@
 namespace orxonox
 {
     ManageScopedSingleton(ScreenshotManager, ScopeID::Graphics, false);
-    _SetConsoleCommand("printScreenHD", &ScreenshotManager::makeScreenshot_s);
+    SetConsoleCommand("printScreenHD", &ScreenshotManager::makeScreenshot_s);
 
     ScreenshotManager::ScreenshotManager()
     {

Modified: code/branches/consolecommands3/src/modules/designtools/SkyboxGenerator.cc
===================================================================
--- code/branches/consolecommands3/src/modules/designtools/SkyboxGenerator.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/modules/designtools/SkyboxGenerator.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -49,7 +49,7 @@
 namespace orxonox
 {
 
-    _SetConsoleCommand("SkyboxGenerator", "createSkybox", &SkyboxGenerator::createSkybox).addShortcut();
+    SetConsoleCommand("SkyboxGenerator", "createSkybox", &SkyboxGenerator::createSkybox).addShortcut();
 
     ManageScopedSingleton(SkyboxGenerator, ScopeID::Graphics, false);
 

Modified: code/branches/consolecommands3/src/modules/objects/triggers/Trigger.cc
===================================================================
--- code/branches/consolecommands3/src/modules/objects/triggers/Trigger.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/modules/objects/triggers/Trigger.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -37,7 +37,7 @@
 namespace orxonox
 {
 
-  _SetConsoleCommand("Trigger", "debugFlares", &Trigger::debugFlares).defaultValues(false);
+  SetConsoleCommand("Trigger", "debugFlares", &Trigger::debugFlares).defaultValues(false);
 
   CreateFactory(Trigger);
 

Modified: code/branches/consolecommands3/src/modules/overlays/hud/GametypeStatus.cc
===================================================================
--- code/branches/consolecommands3/src/modules/overlays/hud/GametypeStatus.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/modules/overlays/hud/GametypeStatus.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -43,7 +43,7 @@
     static const std::string __CC_GametypeStatus_name = "GametypeStatus";
     static const std::string __CC_displayCaption_name = "displayCaption";
 
-    _SetConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name, &GametypeStatus::setDisplayCaption);
+    SetConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name, &GametypeStatus::setDisplayCaption);
 
     GametypeStatus::GametypeStatus(BaseObject* creator) : OverlayText(creator)
     {
@@ -52,12 +52,12 @@
         this->owner_ = 0;
         this->bNoCaption_ = false;
 
-        _ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(this);
+        ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(this);
     }
 
     GametypeStatus::~GametypeStatus()
     {
-        _ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(0);
+        ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(0);
     }
 
     void GametypeStatus::tick(float dt)

Modified: code/branches/consolecommands3/src/orxonox/ChatInputHandler.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/ChatInputHandler.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/ChatInputHandler.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -45,8 +45,8 @@
   ManageScopedSingleton( ChatInputHandler, ScopeID::Graphics, false );
 
   /* add commands to console */
-  _SetConsoleCommand( "startchat", &ChatInputHandler::activate_static );
-  _SetConsoleCommand( "startchat_small", &ChatInputHandler::activate_small_static );
+  SetConsoleCommand( "startchat", &ChatInputHandler::activate_static );
+  SetConsoleCommand( "startchat_small", &ChatInputHandler::activate_small_static );
 
   /* constructor */
   ChatInputHandler::ChatInputHandler()

Modified: code/branches/consolecommands3/src/orxonox/Test.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/Test.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/Test.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -37,12 +37,12 @@
 {
     CreateFactory ( Test );
 
-    _SetConsoleCommand("Test", "printV1", &Test::printV1).addShortcut();
-    _SetConsoleCommand("Test", "printV2", &Test::printV2).addShortcut();
-    _SetConsoleCommand("Test", "printV3", &Test::printV3).addShortcut();
-    _SetConsoleCommand("Test", "printV4", &Test::printV4).addShortcut();
-    _SetConsoleCommand("Test", "call",    &Test::call).addShortcut();
-    _SetConsoleCommand("Test", "call2",   &Test::call2).addShortcut();
+    SetConsoleCommand("Test", "printV1", &Test::printV1).addShortcut();
+    SetConsoleCommand("Test", "printV2", &Test::printV2).addShortcut();
+    SetConsoleCommand("Test", "printV3", &Test::printV3).addShortcut();
+    SetConsoleCommand("Test", "printV4", &Test::printV4).addShortcut();
+    SetConsoleCommand("Test", "call",    &Test::call).addShortcut();
+    SetConsoleCommand("Test", "call2",   &Test::call2).addShortcut();
 
 
   //void=* aaaaa = copyPtr<sizeof(&Test::printV1)>( &NETWORK_FUNCTION_POINTER, &Test::printV1 );

Modified: code/branches/consolecommands3/src/orxonox/controllers/ArtificialController.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/controllers/ArtificialController.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/controllers/ArtificialController.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -46,11 +46,11 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("ArtificialController", "formationflight",  &ArtificialController::formationflight);
-    _SetConsoleCommand("ArtificialController", "masteraction",     &ArtificialController::masteraction);
-    _SetConsoleCommand("ArtificialController", "followme",         &ArtificialController::followme);
-    _SetConsoleCommand("ArtificialController", "passivebehaviour", &ArtificialController::passivebehaviour);
-    _SetConsoleCommand("ArtificialController", "formationsize",    &ArtificialController::formationsize);
+    SetConsoleCommand("ArtificialController", "formationflight",  &ArtificialController::formationflight);
+    SetConsoleCommand("ArtificialController", "masteraction",     &ArtificialController::masteraction);
+    SetConsoleCommand("ArtificialController", "followme",         &ArtificialController::followme);
+    SetConsoleCommand("ArtificialController", "passivebehaviour", &ArtificialController::passivebehaviour);
+    SetConsoleCommand("ArtificialController", "formationsize",    &ArtificialController::formationsize);
 
     static const unsigned int STANDARD_MAX_FORMATION_SIZE = 7;
     static const int RADIUS_TO_SEARCH_FOR_MASTERS = 5000;

Modified: code/branches/consolecommands3/src/orxonox/controllers/HumanController.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/controllers/HumanController.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/controllers/HumanController.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -39,26 +39,26 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("HumanController", "moveFrontBack",          &HumanController::moveFrontBack ).addShortcut().setAsInputCommand();
-    _SetConsoleCommand("HumanController", "moveRightLeft",          &HumanController::moveRightLeft ).addShortcut().setAsInputCommand();
-    _SetConsoleCommand("HumanController", "moveUpDown",             &HumanController::moveUpDown    ).addShortcut().setAsInputCommand();
-    _SetConsoleCommand("HumanController", "rotateYaw",              &HumanController::rotateYaw     ).addShortcut().setAsInputCommand();
-    _SetConsoleCommand("HumanController", "rotatePitch",            &HumanController::rotatePitch   ).addShortcut().setAsInputCommand();
-    _SetConsoleCommand("HumanController", "rotateRoll",             &HumanController::rotateRoll    ).addShortcut().setAsInputCommand();
-    _SetConsoleCommand("HumanController", "fire",                   &HumanController::fire          ).addShortcut().keybindMode(KeybindMode::OnHold);
-    _SetConsoleCommand("HumanController", "reload",                 &HumanController::reload        ).addShortcut();
-    _SetConsoleCommand("HumanController", "boost",                  &HumanController::boost         ).addShortcut().keybindMode(KeybindMode::OnHold);
-    _SetConsoleCommand("HumanController", "greet",                  &HumanController::greet         ).addShortcut();
-    _SetConsoleCommand("HumanController", "switchCamera",           &HumanController::switchCamera  ).addShortcut();
-    _SetConsoleCommand("HumanController", "mouseLook",              &HumanController::mouseLook     ).addShortcut();
-    _SetConsoleCommand("HumanController", "suicide",                &HumanController::suicide       ).addShortcut();
-    _SetConsoleCommand("HumanController", "toggleGodMode",          &HumanController::toggleGodMode ).addShortcut();
-    _SetConsoleCommand("HumanController", "addBots",                &HumanController::addBots       ).addShortcut().defaultValues(1);
-    _SetConsoleCommand("HumanController", "killBots",               &HumanController::killBots      ).addShortcut().defaultValues(0);
-    _SetConsoleCommand("HumanController", "dropItems",              &HumanController::dropItems     ).addShortcut();
-    _SetConsoleCommand("HumanController", "useItem",                &HumanController::useItem       ).addShortcut();
-    _SetConsoleCommand("HumanController", "cycleNavigationFocus",   &HumanController::cycleNavigationFocus).addShortcut();
-    _SetConsoleCommand("HumanController", "releaseNavigationFocus", &HumanController::releaseNavigationFocus).addShortcut();
+    SetConsoleCommand("HumanController", "moveFrontBack",          &HumanController::moveFrontBack ).addShortcut().setAsInputCommand();
+    SetConsoleCommand("HumanController", "moveRightLeft",          &HumanController::moveRightLeft ).addShortcut().setAsInputCommand();
+    SetConsoleCommand("HumanController", "moveUpDown",             &HumanController::moveUpDown    ).addShortcut().setAsInputCommand();
+    SetConsoleCommand("HumanController", "rotateYaw",              &HumanController::rotateYaw     ).addShortcut().setAsInputCommand();
+    SetConsoleCommand("HumanController", "rotatePitch",            &HumanController::rotatePitch   ).addShortcut().setAsInputCommand();
+    SetConsoleCommand("HumanController", "rotateRoll",             &HumanController::rotateRoll    ).addShortcut().setAsInputCommand();
+    SetConsoleCommand("HumanController", "fire",                   &HumanController::fire          ).addShortcut().keybindMode(KeybindMode::OnHold);
+    SetConsoleCommand("HumanController", "reload",                 &HumanController::reload        ).addShortcut();
+    SetConsoleCommand("HumanController", "boost",                  &HumanController::boost         ).addShortcut().keybindMode(KeybindMode::OnHold);
+    SetConsoleCommand("HumanController", "greet",                  &HumanController::greet         ).addShortcut();
+    SetConsoleCommand("HumanController", "switchCamera",           &HumanController::switchCamera  ).addShortcut();
+    SetConsoleCommand("HumanController", "mouseLook",              &HumanController::mouseLook     ).addShortcut();
+    SetConsoleCommand("HumanController", "suicide",                &HumanController::suicide       ).addShortcut();
+    SetConsoleCommand("HumanController", "toggleGodMode",          &HumanController::toggleGodMode ).addShortcut();
+    SetConsoleCommand("HumanController", "addBots",                &HumanController::addBots       ).addShortcut().defaultValues(1);
+    SetConsoleCommand("HumanController", "killBots",               &HumanController::killBots      ).addShortcut().defaultValues(0);
+    SetConsoleCommand("HumanController", "dropItems",              &HumanController::dropItems     ).addShortcut();
+    SetConsoleCommand("HumanController", "useItem",                &HumanController::useItem       ).addShortcut();
+    SetConsoleCommand("HumanController", "cycleNavigationFocus",   &HumanController::cycleNavigationFocus).addShortcut();
+    SetConsoleCommand("HumanController", "releaseNavigationFocus", &HumanController::releaseNavigationFocus).addShortcut();
 
     CreateUnloadableFactory(HumanController);
 

Modified: code/branches/consolecommands3/src/orxonox/controllers/NewHumanController.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/controllers/NewHumanController.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/controllers/NewHumanController.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -48,10 +48,10 @@
 
 namespace orxonox
 {
-    _SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress);
-    _SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress);
-    _SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress);
-    _SetConsoleCommand("NewHumanController", "unfire",     &NewHumanController::unfire    ).keybindMode(KeybindMode::OnRelease).addShortcut();
+    SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress);
+    SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress);
+    SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress);
+    SetConsoleCommand("NewHumanController", "unfire",     &NewHumanController::unfire    ).keybindMode(KeybindMode::OnRelease).addShortcut();
 
     CreateUnloadableFactory(NewHumanController);
 

Modified: code/branches/consolecommands3/src/orxonox/gamestates/GSMainMenu.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/gamestates/GSMainMenu.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/gamestates/GSMainMenu.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -54,12 +54,12 @@
     static const std::string __CC_startMainMenu_name        = "startMainMenu";
     static const std::string __CC_setMainMenuSoundPath_name = "setMMSoundPath";
 
-    _SetConsoleCommand(__CC_startStandalone_name,      &GSMainMenu::startStandalone).deactivate();
-    _SetConsoleCommand(__CC_startServer_name,          &GSMainMenu::startServer    ).deactivate();
-    _SetConsoleCommand(__CC_startClient_name,          &GSMainMenu::startClient    ).deactivate();
-    _SetConsoleCommand(__CC_startDedicated_name,       &GSMainMenu::startDedicated ).deactivate();
-    _SetConsoleCommand(__CC_startMainMenu_name,        &GSMainMenu::startMainMenu  ).deactivate();
-    _SetConsoleCommand(__CC_setMainMenuSoundPath_name, &GSMainMenu::setMainMenuSoundPath).hide();
+    SetConsoleCommand(__CC_startStandalone_name,      &GSMainMenu::startStandalone).deactivate();
+    SetConsoleCommand(__CC_startServer_name,          &GSMainMenu::startServer    ).deactivate();
+    SetConsoleCommand(__CC_startClient_name,          &GSMainMenu::startClient    ).deactivate();
+    SetConsoleCommand(__CC_startDedicated_name,       &GSMainMenu::startDedicated ).deactivate();
+    SetConsoleCommand(__CC_startMainMenu_name,        &GSMainMenu::startMainMenu  ).deactivate();
+    SetConsoleCommand(__CC_setMainMenuSoundPath_name, &GSMainMenu::setMainMenuSoundPath).hide();
 
     GSMainMenu::GSMainMenu(const GameStateInfo& info)
         : GameState(info)
@@ -102,12 +102,12 @@
 
         InputManager::getInstance().enterState("MainMenuHackery");
 
-        _ModifyConsoleCommand(__CC_startStandalone_name).activate();
-        _ModifyConsoleCommand(__CC_startServer_name    ).activate();
-        _ModifyConsoleCommand(__CC_startClient_name    ).activate();
-        _ModifyConsoleCommand(__CC_startDedicated_name ).activate();
-        _ModifyConsoleCommand(__CC_startMainMenu_name  ).activate();
-        _ModifyConsoleCommand(__CC_setMainMenuSoundPath_name).setObject(this);
+        ModifyConsoleCommand(__CC_startStandalone_name).activate();
+        ModifyConsoleCommand(__CC_startServer_name    ).activate();
+        ModifyConsoleCommand(__CC_startClient_name    ).activate();
+        ModifyConsoleCommand(__CC_startDedicated_name ).activate();
+        ModifyConsoleCommand(__CC_startMainMenu_name  ).activate();
+        ModifyConsoleCommand(__CC_setMainMenuSoundPath_name).setObject(this);
 
         KeyBinderManager::getInstance().setToDefault();
 
@@ -134,12 +134,12 @@
         GUIManager::hideGUI("MainMenu");
         GraphicsManager::getInstance().setCamera(0);
 
-        _ModifyConsoleCommand(__CC_startStandalone_name).deactivate();
-        _ModifyConsoleCommand(__CC_startServer_name    ).deactivate();
-        _ModifyConsoleCommand(__CC_startClient_name    ).deactivate();
-        _ModifyConsoleCommand(__CC_startDedicated_name ).deactivate();
-        _ModifyConsoleCommand(__CC_startMainMenu_name  ).deactivate();
-        _ModifyConsoleCommand(__CC_setMainMenuSoundPath_name).setObject(0);
+        ModifyConsoleCommand(__CC_startStandalone_name).deactivate();
+        ModifyConsoleCommand(__CC_startServer_name    ).deactivate();
+        ModifyConsoleCommand(__CC_startClient_name    ).deactivate();
+        ModifyConsoleCommand(__CC_startDedicated_name ).deactivate();
+        ModifyConsoleCommand(__CC_startMainMenu_name  ).deactivate();
+        ModifyConsoleCommand(__CC_setMainMenuSoundPath_name).setObject(0);
     }
 
     void GSMainMenu::update(const Clock& time)

Modified: code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -44,9 +44,9 @@
     static const std::string __CC_setTimeFactor_name = "setTimeFactor";
     static const std::string __CC_pause_name = "pause";
 
-    _SetConsoleCommand("printObjects", &GSRoot::printObjects).hide();
-    _SetConsoleCommand(__CC_setTimeFactor_name, &GSRoot::setTimeFactor).accessLevel(AccessLevel::Master).defaultValues(1.0);
-    _SetConsoleCommand(__CC_pause_name,         &GSRoot::pause        ).accessLevel(AccessLevel::Master);
+    SetConsoleCommand("printObjects", &GSRoot::printObjects).hide();
+    SetConsoleCommand(__CC_setTimeFactor_name, &GSRoot::setTimeFactor).accessLevel(AccessLevel::Master).defaultValues(1.0);
+    SetConsoleCommand(__CC_pause_name,         &GSRoot::pause        ).accessLevel(AccessLevel::Master);
 
     registerStaticNetworkFunction(&TimeFactorListener::setTimeFactor);
 
@@ -81,14 +81,14 @@
         // reset game speed to normal
         TimeFactorListener::setTimeFactor(1.0f);
 
-        _ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(this);
-        _ModifyConsoleCommand(__CC_pause_name).setObject(this);
+        ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(this);
+        ModifyConsoleCommand(__CC_pause_name).setObject(this);
     }
 
     void GSRoot::deactivate()
     {
-        _ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0);
-        _ModifyConsoleCommand(__CC_pause_name).setObject(0);
+        ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0);
+        ModifyConsoleCommand(__CC_pause_name).setObject(0);
     }
 
     void GSRoot::update(const Clock& time)

Modified: code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -57,8 +57,8 @@
     const int LINES = 30;
     const float CHAR_WIDTH = 7.45f; // fix this please - determine the char-width dynamically
 
-    _SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole).addShortcut();
-    _SetConsoleCommand("InGameConsole", "closeConsole", &InGameConsole::closeConsole).addShortcut();
+    SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole).addShortcut();
+    SetConsoleCommand("InGameConsole", "closeConsole", &InGameConsole::closeConsole).addShortcut();
 
     ManageScopedSingleton(InGameConsole, ScopeID::Graphics, false);
 

Modified: code/branches/consolecommands3/src/orxonox/overlays/OrxonoxOverlay.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/overlays/OrxonoxOverlay.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/overlays/OrxonoxOverlay.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -56,10 +56,10 @@
     unsigned int OrxonoxOverlay::hudOverlayCounter_s = 0;
     std::map<std::string, OrxonoxOverlay*> OrxonoxOverlay::overlays_s;
 
-    _SetConsoleCommand("OrxonoxOverlay", "scaleOverlay",     &OrxonoxOverlay::scaleOverlay);
-    _SetConsoleCommand("OrxonoxOverlay", "scrollOverlay",    &OrxonoxOverlay::scrollOverlay);
-    _SetConsoleCommand("OrxonoxOverlay", "toggleVisibility", &OrxonoxOverlay::toggleVisibility);
-    _SetConsoleCommand("OrxonoxOverlay", "rotateOverlay",    &OrxonoxOverlay::rotateOverlay);
+    SetConsoleCommand("OrxonoxOverlay", "scaleOverlay",     &OrxonoxOverlay::scaleOverlay);
+    SetConsoleCommand("OrxonoxOverlay", "scrollOverlay",    &OrxonoxOverlay::scrollOverlay);
+    SetConsoleCommand("OrxonoxOverlay", "toggleVisibility", &OrxonoxOverlay::toggleVisibility);
+    SetConsoleCommand("OrxonoxOverlay", "rotateOverlay",    &OrxonoxOverlay::rotateOverlay);
 
     OrxonoxOverlay::OrxonoxOverlay(BaseObject* creator)
         : BaseObject(creator)

Modified: code/branches/consolecommands3/src/orxonox/overlays/OverlayGroup.cc
===================================================================
--- code/branches/consolecommands3/src/orxonox/overlays/OverlayGroup.cc	2010-08-27 23:25:04 UTC (rev 7235)
+++ code/branches/consolecommands3/src/orxonox/overlays/OverlayGroup.cc	2010-08-27 23:51:04 UTC (rev 7236)
@@ -42,9 +42,9 @@
 {
     CreateFactory(OverlayGroup);
 
-    _SetConsoleCommand("OverlayGroup", "toggleVisibility", &OverlayGroup::toggleVisibility);
-    _SetConsoleCommand("OverlayGroup", "scaleGroup",       &OverlayGroup::scaleGroup);
-    _SetConsoleCommand("OverlayGroup", "scrollGroup",      &OverlayGroup::scrollGroup);
+    SetConsoleCommand("OverlayGroup", "toggleVisibility", &OverlayGroup::toggleVisibility);
+    SetConsoleCommand("OverlayGroup", "scaleGroup",       &OverlayGroup::scaleGroup);
+    SetConsoleCommand("OverlayGroup", "scrollGroup",      &OverlayGroup::scrollGroup);
 
     OverlayGroup::OverlayGroup(BaseObject* creator)
         : BaseObject(creator)




More information about the Orxonox-commit mailing list