Changeset 7854 for code/trunk/src/orxonox/sound/AmbientSound.h
- Timestamp:
- Feb 11, 2011, 1:03:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/AmbientSound.h
r6417 r7854 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include "core/BaseObject.h"36 #include "network/synchronisable/Synchronisable.h"37 35 #include "BaseSound.h" 38 36 #include "MoodManager.h" … … 41 39 { 42 40 /** 43 * The AmbientSound class is the base class for all sound file loader classes. 44 * It server as main interface to the OpenAL library. 45 * 41 * The AmbientSound class is used to play background music. It can not be placed 42 * directly in a level file, use WorldAmbientSound instead. 46 43 */ 47 class _OrxonoxExport AmbientSound : public BaseSound, public BaseObject, public Synchronisable, publicMoodListener44 class _OrxonoxExport AmbientSound : public BaseSound, public MoodListener 48 45 { 49 46 friend class SoundManager; 47 friend class WorldAmbientSound; 50 48 51 49 public: 52 AmbientSound(BaseObject* creator); 53 54 void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 56 void changedActivity(); 50 AmbientSound(); 57 51 58 52 void play(); … … 73 67 private: 74 68 void preDestroy(); 75 void registerVariables();76 69 float getRealVolume(); 77 70 void moodChanged(const std::string& mood);
Note: See TracChangeset
for help on using the changeset viewer.