Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2009, 11:10:39 AM (14 years ago)
Author:
rgrieder
Message:

Little cleanup in sound stuff and MoodManager.
Caution: Renamed SoundTypes to {All, Music, Effects}!

File:
1 edited

Legend:

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

    r6205 r6370  
    4141    {
    4242        RegisterRootObject(MoodManager);
    43         moodOld_ = "default";
    4443        this->setConfigValues();
    4544        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&MoodManager::setMood, this), "setMood"));
     
    5756    }
    5857
    59     /**
    60      *  Sets the mood
    61      *  @note TODO: Inform dependent classes of mood change
    62      */
     58    /** Sets the mood
     59    @note
     60       TODO: Inform dependent classes of mood change
     61    */
    6362    void MoodManager::setMood(const std::string& mood)
    6463    {
     
    6665    }
    6766   
    68     // gets the current mood
     67    //! Gets the current mood
    6968    const std::string& MoodManager::getMood()
    7069    {
     
    7473    void MoodManager::checkMoodValidity()
    7574    {
    76         if(mood_ != "default" && mood_ != "dnb")        // Insert new moods here
    77         {
     75        if (mood_ != "default" && mood_ != "dnb") // Insert new moods here; TODO: make this generic
    7876            ResetConfigValue(mood_);
    79         }
    80         COUT(3) << "MoodManager: Mood now set to " << mood_ << std::endl;
    81         return;
     77        COUT(4) << "MoodManager: Mood set to " << mood_ << std::endl;
    8278    }
    8379}
Note: See TracChangeset for help on using the changeset viewer.