public void CreatePlaylist(TypeOfPlay typeOfPlay) { this.TypeOfPlay = typeOfPlay; switch (this.TypeOfPlay) { case TypeOfPlay.Normal: PlayList = new NormalPlaylist(); break; case TypeOfPlay.Random: PlayList = new RandomPlaylist(); break; case TypeOfPlay.Reversed: PlayList = new ReversedPlaylist(); break; default: break; } this.PlayList.Songs = this.Songs.ToList(); PlayList.First(); this.CurrentSong = PlayList.CurrentItem; }
public void PlayWith(TypeOfPlay playType) { if (_weariness > _levelOfWearinessResultingInTantrum || _hunger > _levelOfHungerResultingInTantrum) { Tantrum(); return; } if (playType == TypeOfPlay.Monster || playType == TypeOfPlay.Wrestling) { Console.WriteLine("You are the king of this domain, your wife yells at everyone to stop screaming and calm down"); _weariness += _alotOfFun; _hunger += _alotOfFun; } else if (playType == TypeOfPlay.Reading) { Console.WriteLine("The rain is coming down slowly outside and you two snuggle up and read together"); _weariness += _relaxingFun; _hunger += _relaxingFun; } else if (playType == TypeOfPlay.Coloring) { Console.WriteLine("Markers come off the walls right?"); _weariness += _relaxingFun; _hunger += _relaxingFun; } }