예제 #1
0
        public SingleGame GetNextSingleGame()
        {
            Song song = GetNextSong();

            if (song != null)
            {
                _currentGame = new SingleGame(song);
            }

            return(_currentGame);
        }
예제 #2
0
        public SingleGame GetPrevSingleGame()
        {
            Song song = GetPrevSong();

            if (song != null)
            {
                _currentGame = new SingleGame(song);
                System.Diagnostics.Debug.WriteLine(string.Format("Game with Song: {0}", song));
            }

            return(_currentGame);
        }
예제 #3
0
        public Game()
        {
            // Initialize the random number generator
            _randomNumberGenerator = new Random();
            // Initialize the song file
            _theSongFile = SongFile.GetInstance();
            // Shuffle the songs
            ShuffleSongs();

            _currentGame = null;
            _songIndex   = -1;
        }