예제 #1
0
        public ArrJobs(string name)
        {
            this.Name = name;

            relic  = new ArrProgress("Relic", name);
            zenith = new ArrProgress("Zenith", name);
            atma   = new ArrProgress("Atma", name);
            animus = new ArrProgress("Animus", name);
            novus  = new ArrProgress("Novus", name);
            nexus  = new ArrProgress("Nexus", name);
            braves = new ArrProgress("Braves", name);
            zeta   = new ArrProgress("Zeta", name);
        }
 private static void IncompleteOtherJobs(Character SelectedCharacter, ArrJobs tempStage, int StageIndex)
 {
     foreach (ArrJobs Job in SelectedCharacter.ArrProgress.ArrWeapon.JobList)
     {
         if (Job != tempStage)
         {
             ArrProgress stage = Job.StageList[StageIndex];
             if (stage.Progress == ArrProgress.States.Initiated)
             {
                 stage.Progress = ArrProgress.States.NA;
             }
         }
     }
 }
        public static void ProgressClass(Character character, ArrProgress arrProgress, bool CompleteBool = false)
        {
            int StageIndex = ArrInfo.StageListString.IndexOf(arrProgress.Name);
            int JobIndex   = ArrInfo.JobListString.IndexOf(arrProgress.Job);

            ArrJobs Job = character.ArrProgress.ArrWeapon.JobList[JobIndex];

            if (arrProgress.Progress == ArrProgress.States.NA)
            {
                CompletePreviousStages(Job, StageIndex);
            }
            else if (arrProgress.Progress == ArrProgress.States.Completed)
            {
                InCompleteFollowingStages(Job, StageIndex);
                return;
            }
            if (arrProgress.Progress == ArrProgress.States.Initiated | CompleteBool)
            {
                arrProgress.Progress = ArrProgress.States.Completed;
            }
            else
            {
                switch (StageIndex)
                {
                case 0:
                case 3:
                case 6:
                case 5:
                case 7:
                    arrProgress.Progress++;
                    if (arrProgress.Progress == ArrProgress.States.Initiated)
                    {
                        IncompleteOtherJobs(character, Job, StageIndex);
                    }
                    break;

                case 1:
                case 2:
                    arrProgress.Progress = ArrProgress.States.Completed;
                    break;

                case 4:
                    NovusCompleter(character, Job.Name);
                    arrProgress.Progress = ArrProgress.States.Completed;
                    break;
                }
            }
        }
 public ArrProgress(ArrProgress arrProgress, string name, string Job)
 {
     this.Name     = name;
     this.Progress = arrProgress.Progress;
     this.Job      = Job;
 }