Changeset 6370 for code/branches/presentation2/src/orxonox/MoodManager.cc
- Timestamp:
- Dec 17, 2009, 11:10:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/MoodManager.cc
r6205 r6370 41 41 { 42 42 RegisterRootObject(MoodManager); 43 moodOld_ = "default";44 43 this->setConfigValues(); 45 44 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&MoodManager::setMood, this), "setMood")); … … 57 56 } 58 57 59 /** 60 * Sets the mood61 * @noteTODO: Inform dependent classes of mood change62 58 /** Sets the mood 59 @note 60 TODO: Inform dependent classes of mood change 61 */ 63 62 void MoodManager::setMood(const std::string& mood) 64 63 { … … 66 65 } 67 66 68 // gets the current mood67 //! Gets the current mood 69 68 const std::string& MoodManager::getMood() 70 69 { … … 74 73 void MoodManager::checkMoodValidity() 75 74 { 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 78 76 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; 82 78 } 83 79 }
Note: See TracChangeset
for help on using the changeset viewer.