Exemplo n.º 1
0
 public float GetSoundVolume()
 {
     strategy = new WAVSoundsStrategy(soundEffectsList);
     return(strategy.GetMasterVolume());
 }
 private void ChangeStrategy(Animal animal)
 {
     _soundStrategy = _strategyMaker.CreateStrategyFor(animal);
 }
Exemplo n.º 3
0
 public float GetMusicVolume()
 {
     strategy = new MP3SongsStrategy(songsList);
     return(strategy.GetMasterVolume());
 }
Exemplo n.º 4
0
 public void SetSoundMasterVolume(float volume)
 {
     strategy = new WAVSoundsStrategy(soundEffectsList);
     strategy.SetMasterVolume(volume);
 }
Exemplo n.º 5
0
 public void SetMusicMasterVolume(float volume)
 {
     strategy = new MP3SongsStrategy(songsList);
     strategy.SetMasterVolume(volume);
 }
Exemplo n.º 6
0
 public void PlaySound(string name)
 {
     strategy = new WAVSoundsStrategy(soundEffectsList, name);
     strategy.PlayFile();
 }
Exemplo n.º 7
0
 public void PlaySong(string name)
 {
     strategy    = new MP3SongsStrategy(songsList, name, currentSong);
     currentSong = songsList.Find(x => x.Name == name);
     strategy.PlayFile();
 }