public static LevelProgress FromString(string s)
        {
            LevelProgress lp = new LevelProgress();

            lp.SetFromString(s);
            return(lp);
        }
 public GameProgress()
 {
     mProgress = new LevelProgress[LevelCount];
     int i;
     for (i = 0; i < LevelCount; i++)
     {
         mProgress[i] = new LevelProgress();
     }
     for (i = 0; i < LevelCount; i++)
     {
         mPilotStats[i] = new PilotStats(i);
     }
 }
Пример #3
0
        public GameProgress()
        {
            mProgress = new LevelProgress[LevelCount];
            int i;

            for (i = 0; i < LevelCount; i++)
            {
                mProgress[i] = new LevelProgress();
            }
            for (i = 0; i < LevelCount; i++)
            {
                mPilotStats[i] = new PilotStats(i);
            }
        }
        public bool MergeWith(LevelProgress other)
        {
            bool modified = false;

            if (other.mScore > mScore)
            {
                mScore   = other.mScore;
                modified = true;
            }
            if (other.mStars > mStars)
            {
                mStars   = other.mStars;
                modified = true;
            }
            return(modified);
        }
Пример #5
0
        public bool IsLevelUnlocked(int level)
        {
            LevelProgress prev = GetLevelProgress(level - 1);

            return(level == 0 || (prev != null && prev.Cleared));
        }
 public bool MergeWith(LevelProgress other)
 {
     bool modified = false;
     if (other.mScore > mScore)
     {
         mScore = other.mScore;
         modified = true;
     }
     if (other.mStars > mStars)
     {
         mStars = other.mStars;
         modified = true;
     }
     return modified;
 }
 public static LevelProgress FromString(string s)
 {
     LevelProgress lp = new LevelProgress();
     lp.SetFromString(s);
     return lp;
 }