コード例 #1
0
        private void BtnJobAgencyFightClick(object sender, EventArgs e)
        {
            fightForJob = true;
            var list = jobOffice.GenerateJobsFor(ninja);

            ////this.ReturnCheckedButton();
            ////this.building = JobOffice.Instance;
            ////building.ApplyForJob(ninja, job);
            ////building.ApplyForJob(ninja, job, evil);
            this.job = ReturnCheckedButton(list);
            arena = jobOffice.ApplyForJob(ninja, job);
            evil = arena.Creature;

            this.InitializeFight();
            this.temporaryBag = new List<IUsable>(this.ninja.BagOfItems);
            this.temporaryForceBag = new List<IUsable>(this.ninja.ListOfFightingSkills);
            this.temporaryMentalBag = new List<IUsable>(this.ninja.ListOfMentalSkills);
            //arena = new Arena("Job Office", this.job.JobFightRules, this.ninja, this.evil);
        }
コード例 #2
0
        private void BtnSchoolFightClick(object sender, EventArgs e)
        {
            this.academy = Academy.Instance;
            this.arena = academy.Practice(ninja);
            this.evil = arena.Creature;
            this.isSchoolFight = true;
            this.InitializeFight();

            this.pnlSchool.Visible = false;
            this.pnlFight.Visible = true;
            this.DeclareFightButtons();
            this.LoadButtons();
            this.temporaryBag = new List<IUsable>(this.ninja.BagOfItems);
            this.temporaryForceBag = new List<IUsable>(this.ninja.ListOfFightingSkills);
            this.temporaryMentalBag = new List<IUsable>(this.ninja.ListOfMentalSkills);
        }
コード例 #3
0
        private void BtnDreamJobFightClick(object sender, EventArgs e)
        {
            arena = DreamJob.Apply(ninja);
            evil = arena.Creature;

            this.pnlDreamJob.Visible = false;
            this.pnlFight.Visible = true;
            this.DeclareFightButtons();
            this.LoadButtons();
            this.lblFightNinja.Text = this.ninja.Name;
            this.lblFightEvil.Text = this.evil.Name;
            this.prgrsFightNinja.Maximum = this.ninja.TotalEnergy;
            this.prgrsFightEvil.Maximum = this.evil.TotalEnergy;
            this.prgrsFightEvil.Value = this.evil.CurrentEnergy;
            this.prgrsFightNinja.Value = this.ninja.CurrentEnergy;
            this.temporaryBag = new List<IUsable>(this.ninja.BagOfItems);
            this.temporaryForceBag = new List<IUsable>(this.ninja.ListOfFightingSkills);
            this.temporaryMentalBag = new List<IUsable>(this.ninja.ListOfMentalSkills);
        }