예제 #1
0
        private void StartRandomVisibleSongs()
        {
            CGame.Reset();
            CGame.ClearSongs();
            CGame.SetGameMode(GameModes.EGameMode.Normal);

            List <int> IDs = new List <int>();

            for (int i = 0; i < CSongs.VisibleSongs.Length; i++)
            {
                IDs.Add(CSongs.VisibleSongs[i].ID);
            }

            while (IDs.Count > 0)
            {
                int SongNr = IDs[CGame.Rand.Next(IDs.Count)];

                if (!CSongs.AllSongs[SongNr].IsDuet)
                {
                    CGame.AddSong(SongNr);
                }
                IDs.Remove(SongNr);
            }

            if (CGame.GetNumSongs() > 0)
            {
                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }
예제 #2
0
        private void StartRandomVisibleSongs()
        {
            CGame.Reset();
            CGame.ClearSongs();

            List <int> IDs = new List <int>();

            for (int i = 0; i < CSongs.VisibleSongs.Length; i++)
            {
                IDs.Add(CSongs.VisibleSongs[i].ID);
            }

            while (IDs.Count > 0)
            {
                int SongNr = IDs[CGame.Rand.Next(IDs.Count)];

                EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL;
                if (CSongs.AllSongs[SongNr].IsDuet)
                {
                    gm = EGameMode.TR_GAMEMODE_DUET;
                }

                CGame.AddSong(SongNr, gm);

                IDs.Remove(SongNr);
            }

            if (CGame.GetNumSongs() > 0)
            {
                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }
예제 #3
0
        private void StartSong(int SongNr)
        {
            if ((CSongs.Category >= 0) && (SongNr >= 0))
            {
                EGameMode gm;
                if (_AvailableGameModes.Count >= SelectSlides[htSelectSlides(SelectSlideOptionsMode)].Selection)
                {
                    gm = _AvailableGameModes[SelectSlides[htSelectSlides(SelectSlideOptionsMode)].Selection];
                }
                else
                {
                    if (CSongs.VisibleSongs[SongNr].IsDuet)
                    {
                        gm = GameModes.EGameMode.TR_GAMEMODE_DUET;
                    }
                    else
                    {
                        gm = GameModes.EGameMode.TR_GAMEMODE_NORMAL;
                    }
                }

                CGame.Reset();
                CGame.ClearSongs();

                CGame.AddVisibleSong(SongNr, gm);

                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }
        private void StartSong(int SongNr, bool Duet)
        {
            if (SongNr >= 0 && CSongs.SongsLoaded)
            {
                CGame.Reset();
                CGame.ClearSongs();

                EGameMode gm = EGameMode.TR_GAMEMODE_NORMAL;
                if (CSongs.AllSongs[SongNr].IsDuet)
                {
                    gm = EGameMode.TR_GAMEMODE_DUET;
                }

                CGame.AddSong(SongNr, gm);

                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }
예제 #5
0
        private void _StartSong(int songNr)
        {
            if (songNr < 0 || !CSongs.SongsLoaded)
            {
                return;
            }
            CGame.Reset();
            CGame.ClearSongs();

            var gm = EGameMode.TR_GAMEMODE_NORMAL;

            if (CSongs.AllSongs[songNr].IsGameModeAvailable(EGameMode.TR_GAMEMODE_DUET))
            {
                gm = EGameMode.TR_GAMEMODE_DUET;
            }

            CGame.AddSong(songNr, gm);

            CGame.GotoNameSelection();
        }
예제 #6
0
        private void StartSong(int SongNr)
        {
            if ((CSongs.Category >= 0) && (SongNr >= 0))
            {
                if (CSongs.VisibleSongs[SongNr].IsDuet)
                {
                    CGame.SetGameMode(GameModes.EGameMode.Duet);
                }
                else
                {
                    CGame.SetGameMode(GameModes.EGameMode.Normal);
                }

                CGame.Reset();
                CGame.ClearSongs();
                CGame.AddVisibleSong(SongNr);
                //CGame.AddSong(SongNr+1);

                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }
예제 #7
0
        private void StartMedleySong(int SongNr)
        {
            if ((CSongs.Category >= 0) && (SongNr >= 0))
            {
                EGameMode gm;
                if (CSongs.VisibleSongs[SongNr].Medley.Source != EMedleySource.None)
                {
                    gm = GameModes.EGameMode.TR_GAMEMODE_MEDLEY;
                }
                else
                {
                    return;
                }

                CGame.Reset();
                CGame.ClearSongs();
                CGame.AddVisibleSong(SongNr, gm);

                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }
예제 #8
0
        private void StartVisibleSong(int SongNr)
        {
            if (CSongs.Category >= 0 && SongNr >= 0 && CSongs.NumVisibleSongs > SongNr)
            {
                EGameMode gm;
                if (CSongs.VisibleSongs[SongNr].IsDuet)
                {
                    gm = GameModes.EGameMode.TR_GAMEMODE_DUET;
                }
                else
                {
                    gm = GameModes.EGameMode.TR_GAMEMODE_NORMAL;
                }

                CGame.Reset();
                CGame.ClearSongs();

                CGame.AddVisibleSong(SongNr, gm);

                CGraphics.FadeTo(EScreens.ScreenNames);
            }
        }