Changeset 3055 for code/branches/sound2/src/orxonox/gamestates
- Timestamp:
- May 25, 2009, 1:53:13 PM (16 years ago)
- Location:
- code/branches/sound2/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound2/src/orxonox/gamestates/GSMainMenu.cc
r2957 r3055 40 40 #include "objects/Scene.h" 41 41 #include "GraphicsManager.h" 42 #include "sound/SoundMainMenu.h" 42 43 43 44 namespace orxonox … … 79 80 80 81 InputManager::getInstance().requestEnterState("mainMenu"); 82 83 this->ambient_ = new SoundMainMenu(); 84 this->ambient_->play(true); 81 85 } 82 86 83 87 void GSMainMenu::deactivate() 84 88 { 89 delete this->ambient_; 90 85 91 InputManager::getInstance().requestLeaveState("mainMenu"); 86 92 InputManager::getInstance().requestDestroyState("mainMenu"); -
code/branches/sound2/src/orxonox/gamestates/GSMainMenu.h
r2896 r3055 55 55 // console commands 56 56 ConsoleCommand* ccStartGame_; 57 58 // ambient sound for the main menu 59 SoundMainMenu* ambient_; 57 60 }; 58 61 }
Note: See TracChangeset
for help on using the changeset viewer.