public void UpdatePokemon()
        {
            if (pokemonData == null)
            {
                return;
            }
            STRDots.SetStats(pokemonData.Attributes.GetStatByTag("Strength"), pokemonData.Attributes);
            DEXDots.SetStats(pokemonData.Attributes.GetStatByTag("Dexterity"), pokemonData.Attributes);
            VITDots.SetStats(pokemonData.Attributes.GetStatByTag("Vitality"), pokemonData.Attributes);
            SPEDots.SetStats(pokemonData.Attributes.GetStatByTag("Special"), pokemonData.Attributes);
            INSDots.SetStats(pokemonData.Attributes.GetStatByTag("Insight"), pokemonData.Attributes);

            TOUDots.SetStats(pokemonData.SocialAttributes.GetStatByTag("Tough"), pokemonData.SocialAttributes);
            COODots.SetStats(pokemonData.SocialAttributes.GetStatByTag("Cool"), pokemonData.SocialAttributes);
            BEADots.SetStats(pokemonData.SocialAttributes.GetStatByTag("Beauty"), pokemonData.SocialAttributes);
            CLEDots.SetStats(pokemonData.SocialAttributes.GetStatByTag("Clever"), pokemonData.SocialAttributes);
            CUTDots.SetStats(pokemonData.SocialAttributes.GetStatByTag("Cute"), pokemonData.SocialAttributes);

            BRAWLDots.SetStats(pokemonData.Skills.GetStatByTag("Brawl"), pokemonData.Skills);
            CHANNDots.SetStats(pokemonData.Skills.GetStatByTag("Channel"), pokemonData.Skills);
            CLASHDots.SetStats(pokemonData.Skills.GetStatByTag("Clash"), pokemonData.Skills);
            EVADEDots.SetStats(pokemonData.Skills.GetStatByTag("Evasion"), pokemonData.Skills);
            ALERTDots.SetStats(pokemonData.Skills.GetStatByTag("Alert"), pokemonData.Skills);
            ATHLEDots.SetStats(pokemonData.Skills.GetStatByTag("Athletic"), pokemonData.Skills);
            NATURDots.SetStats(pokemonData.Skills.GetStatByTag("Nature"), pokemonData.Skills);
            STEALDots.SetStats(pokemonData.Skills.GetStatByTag("Stealth"), pokemonData.Skills);
            ALLURDots.SetStats(pokemonData.Skills.GetStatByTag("Allure"), pokemonData.Skills);
            ETIQUDots.SetStats(pokemonData.Skills.GetStatByTag("Etiquette"), pokemonData.Skills);
            INTIMDots.SetStats(pokemonData.Skills.GetStatByTag("Intimidate"), pokemonData.Skills);
            PERFODots.SetStats(pokemonData.Skills.GetStatByTag("Perform"), pokemonData.Skills);

            LOYALDots.SetStats(pokemonData.Loyalty);
            HAPPYDots.SetStats(pokemonData.Happiness);


            rankControl.Update();
            hpControl.Update(pokemonData.HP);
            willControl.Update(pokemonData.Will);

            UpdateImageDisplay();

            textAttributePoints.Text = pokemonData.Attributes.AvailablePoints.ToString();
            textSocialPoints.Text    = pokemonData.SocialAttributes.AvailablePoints.ToString();
            textSkillPoints.Text     = pokemonData.Skills.AvailablePoints.ToString();
        }
Example #2
0
        public void UpdateTrainer()
        {
            if (trainerData == null)
            {
                return;
            }

            rankControl.Update();

            STRDots.SetStats(trainerData.Attributes.GetStatByTag("Strength"), trainerData.Attributes);
            DEXDots.SetStats(trainerData.Attributes.GetStatByTag("Dexterity"), trainerData.Attributes);
            VITDots.SetStats(trainerData.Attributes.GetStatByTag("Vitality"), trainerData.Attributes);
            INSDots.SetStats(trainerData.Attributes.GetStatByTag("Insight"), trainerData.Attributes);

            TOUDots.SetStats(trainerData.SocialAttributes.GetStatByTag("Tough"), trainerData.SocialAttributes);
            COODots.SetStats(trainerData.SocialAttributes.GetStatByTag("Cool"), trainerData.SocialAttributes);
            BEADots.SetStats(trainerData.SocialAttributes.GetStatByTag("Beauty"), trainerData.SocialAttributes);
            CLEDots.SetStats(trainerData.SocialAttributes.GetStatByTag("Clever"), trainerData.SocialAttributes);
            CUTDots.SetStats(trainerData.SocialAttributes.GetStatByTag("Cute"), trainerData.SocialAttributes);

            BRAWLDots.SetStats(trainerData.Skills.GetStatByTag("Brawl"), trainerData.Skills);
            WEAPODots.SetStats(trainerData.Skills.GetStatByTag("Channel"), trainerData.Skills);
            THROWDots.SetStats(trainerData.Skills.GetStatByTag("Clash"), trainerData.Skills);
            EVADEDots.SetStats(trainerData.Skills.GetStatByTag("Evasion"), trainerData.Skills);
            ALERTDots.SetStats(trainerData.Skills.GetStatByTag("Alert"), trainerData.Skills);
            ATHLEDots.SetStats(trainerData.Skills.GetStatByTag("Athletic"), trainerData.Skills);
            NATURDots.SetStats(trainerData.Skills.GetStatByTag("Nature"), trainerData.Skills);
            STEALDots.SetStats(trainerData.Skills.GetStatByTag("Stealth"), trainerData.Skills);
            ALLURDots.SetStats(trainerData.Skills.GetStatByTag("Allure"), trainerData.Skills);
            ETIQUDots.SetStats(trainerData.Skills.GetStatByTag("Etiquette"), trainerData.Skills);
            INTIMDots.SetStats(trainerData.Skills.GetStatByTag("Intimidate"), trainerData.Skills);
            PERFODots.SetStats(trainerData.Skills.GetStatByTag("Perform"), trainerData.Skills);
            CRAFTDots.SetStats(trainerData.Skills.GetStatByTag("Crafts"), trainerData.Skills);
            LOREDots.SetStats(trainerData.Skills.GetStatByTag("Lore"), trainerData.Skills);
            MEDICDots.SetStats(trainerData.Skills.GetStatByTag("Medicine"), trainerData.Skills);
            SCIENDots.SetStats(trainerData.Skills.GetStatByTag("Science"), trainerData.Skills);

            textAttributePoints.Text = trainerData.Attributes.AvailablePoints.ToString();
            textSocialPoints.Text    = trainerData.SocialAttributes.AvailablePoints.ToString();
            textSkillPoints.Text     = trainerData.Skills.AvailablePoints.ToString();

            hpControl.Update(trainerData.HP);
            willControl.Update(trainerData.Will);
        }