Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6072


Ignore:
Timestamp:
Nov 15, 2009, 10:40:53 PM (14 years ago)
Author:
rgrieder
Message:

Removed some tabs.

Location:
code/branches/sound3/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound3/src/orxonox/MoodManager.cc

    r6031 r6072  
    4444        moodOld_ = "default";
    4545        this->setConfigValues();
    46                 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&MoodManager::setMood, this), "setMood"));
     46        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&MoodManager::setMood, this), "setMood"));
    4747    }
    4848
     
    5858    }
    5959
    60         /**
     60    /**
    6161     *  Sets the mood
    6262     *  @note TODO: Inform dependent classes of mood change
    6363     */
    64         void MoodManager::setMood(const std::string& mood) {
    65                 ModifyConfigValue(mood_, set, mood);
    66         }
    67        
    68         // gets the current mood
    69         const std::string& MoodManager::getMood() {
    70                 return mood_;
    71         }
     64    void MoodManager::setMood(const std::string& mood)
     65    {
     66        ModifyConfigValue(mood_, set, mood);
     67    }
     68   
     69    // gets the current mood
     70    const std::string& MoodManager::getMood()
     71    {
     72        return mood_;
     73    }
    7274
    7375    void MoodManager::checkMoodValidity()
  • code/branches/sound3/src/orxonox/MoodManager.h

    r6031 r6072  
    5353            void setConfigValues();
    5454
    55                         void setMood(const std::string& mood);
    56                         const std::string& getMood();
     55            void setMood(const std::string& mood);
     56            const std::string& getMood();
    5757
    5858            static MoodManager& getInstance()    { return Singleton<MoodManager>::getInstance(); } // tolua_export
    5959
    6060        private:
    61            
     61
    6262            // config values
    6363            std::string mood_;
  • code/branches/sound3/src/orxonox/gamestates/GSMainMenu.cc

    r6071 r6072  
    5050        , inputState_(0)
    5151    {
    52                 RegisterRootObject(GSMainMenu);
     52        RegisterRootObject(GSMainMenu);
    5353        inputState_ = InputManager::getInstance().createInputState("mainMenu");
    5454        inputState_->setMouseMode(MouseMode::Nonexclusive);
     
    9393        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startMainMenu), "startMainMenu"));
    9494        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startIOConsole), "startIOConsole"));
    95                
    96                 // create command to change sound path
    97                 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::setMainMenuSoundPath, this), "setMMSoundPath"));
     95       
     96        // create command to change sound path
     97        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::setMainMenuSoundPath, this), "setMMSoundPath"));
    9898
    9999        KeyBinderManager::getInstance().setToDefault();
     
    106106        }
    107107
    108                 this->setConfigValues();
     108        this->setConfigValues();
    109109    }
    110110
     
    126126    }
    127127
    128         void GSMainMenu::setConfigValues()
     128    void GSMainMenu::setConfigValues()
    129129    {
    130130        SetConfigValue(soundPathMain_, "mainmenu.wav")
    131131            .description("Contains the path to the main menu sound file.")
    132                         .callback(this, &GSMainMenu::reloadSound);
     132            .callback(this, &GSMainMenu::reloadSound);
    133133    }
    134134
    135         void GSMainMenu::reloadSound() {
    136                 if (GameMode::playsSound())
     135    void GSMainMenu::reloadSound()
     136    {
     137        if (GameMode::playsSound())
    137138        {
    138139            this->ambient_->setAmbientSource(soundPathMain_);
    139                 }
    140         }
     140        }
     141    }
    141142
    142         const std::string& GSMainMenu::getMainMenuSoundPath() {
    143                 return soundPathMain_;
    144         }
     143    const std::string& GSMainMenu::getMainMenuSoundPath()
     144    {
     145        return soundPathMain_;
     146    }
    145147
    146         void GSMainMenu::setMainMenuSoundPath(const std::string& path) {
    147                 ModifyConfigValue(soundPathMain_, set, path);
    148         }
     148    void GSMainMenu::setMainMenuSoundPath(const std::string& path)
     149    {
     150        ModifyConfigValue(soundPathMain_, set, path);
     151    }
    149152
    150153    void GSMainMenu::startStandalone()
  • code/branches/sound3/src/orxonox/gamestates/GSMainMenu.h

    r5956 r6072  
    4848        void update(const Clock& time);
    4949
    50                 void setConfigValues();
    51                 void reloadSound();
    52                 const std::string& getMainMenuSoundPath();
    53                 void setMainMenuSoundPath(const std::string& path);
     50        void setConfigValues();
     51        void reloadSound();
     52        const std::string& getMainMenuSoundPath();
     53        void setMainMenuSoundPath(const std::string& path);
    5454
    5555        static void startStandalone();
     
    6767        // ambient sound for the main menu
    6868        AmbientSound*     ambient_;
    69                 std::string               soundPathMain_;
     69        std::string       soundPathMain_;
    7070    };
    7171}
Note: See TracChangeset for help on using the changeset viewer.