Пример #1
0
 public Composition(string TimeSigStr, int BPM, string SongFile, string inDifficulty, string inSongName)
 {
     _SongName     = inSongName;
     _Difficulty   = (TDifficulty)Enum.Parse(typeof(TDifficulty), inDifficulty);
     _File         = SongFile;
     TimeSignature = new TTimeSignature(TimeSigStr);
     BeatsPerMin   = BPM;
     InitaliseCompositionList();
 }
Пример #2
0
 // Change the difficulty when overpass the int m_RoundToIncreaseDifficulty
 public void SetCurrentDifficulty()
 {
     if (m_CurrentRound > m_RoundToIncreaseDifficultyToNormal)
     {
         m_CurrentDifficulty = TDifficulty.Normal;
     }
     else if (m_CurrentRound > m_RoundToIncreaseDiffcultyToHard)
     {
         m_CurrentDifficulty = TDifficulty.Hard;
     }
     GameModeController.Instance.SetCurrentTimeRound(m_CurrentDifficulty);
 }
Пример #3
0
    // Change time depending on difficulty
    public void SetCurrentTimeRound(TDifficulty difficulty)
    {
        switch (difficulty)
        {
        case TDifficulty.Easy:
            m_CurrentTimeRound = m_TimePerRoundEasy;
            break;

        case TDifficulty.Normal:
            m_CurrentTimeRound = m_TimePerRoundNormal;
            break;

        case TDifficulty.Hard:
            m_CurrentTimeRound = m_TimePerRoundHard;
            break;
        }
    }
Пример #4
0
        public string DifficultyModification(string Input, TDifficulty Difficulty)
        {
            string Output = "";
            int    temp, Count = 0;

            if (Difficulty == TDifficulty.Hard)
            {
                return(Input);
            }
            for (int i = 0; i < Input.Length; i = i = i + 2)
            {
                temp = Count % (int)Difficulty;
                if (temp == 0)
                {
                    Output = string.Concat(Output, Input[i], Input[i + 1]);
                }
                Count++;
            }

            return(Output);
        }