コード例 #1
0
        private byte[] GetBaselineMentality()
        {
            var role = new byte[Enum.GetNames(typeof(DP)).Length];

            role.AW(DP.Aggression, 1);
            role.AW(DP.Anticipation, 3);
            role.AW(DP.Bravery, 1);
            role.AW(DP.Consistency, 4);
            role.AW(DP.Decisions, 5);
            role.AW(DP.Dirtiness, 0);
            role.AW(DP.ImportantMatches, 1);
            role.AW(DP.Influence, 0);
            role.AW(DP.Teamwork, 1);
            role.AW(DP.WorkRate, 1);

            return(role);
        }
コード例 #2
0
 private void AddOffField()
 {
     byte[] person = new byte[52];
     person.AW(DP.Adaptability, 0);
     person.AW(DP.Ambition, 0);
     person.AW(DP.Determination, 3);
     person.AW(DP.Loyalty, 4);
     person.AW(DP.Pressure, 6);
     person.AW(DP.Professionalism, 4);
     person.AW(DP.Sportsmanship, 0);
     person.AW(DP.Temperament, 3);
     weightings[weightings.Length - 1] = person;
 }
コード例 #3
0
        private byte[] GetValues(Player player)
        {
            byte[] values = new byte[Enum.GetNames(typeof(DP)).Length];
            values.AW(DP.Acceleration, player._player.Acceleration);
            values.AW(DP.Aggression, player._player.Aggression);
            values.AW(DP.Agility, player._player.Agility);
            values.AW(DP.Anticipation, player._player.Anticipation);
            values.AW(DP.Balance, player._player.Balance);
            values.AW(DP.Bravery, player._player.Bravery);
            values.AW(DP.Consistency, player._player.Consistency);
            values.AW(DP.Corners, player._player.Corners);
            values.AW(DP.Creativity, player._player.Creativity);
            values.AW(DP.Crossing, player._player.Crossing);
            values.AW(DP.Decisions, player._player.Decisions);
            values.AW(DP.Dirtiness, player._player.Dirtiness);
            values.AW(DP.Dribbling, player._player.Dribbling);
            values.AW(DP.Finishing, player._player.Finishing);
            values.AW(DP.FreeKicks, player._player.FreeKicks);
            values.AW(DP.Flair, player._player.Flair);
            values.AW(DP.Handling, player._player.Handling);
            values.AW(DP.Heading, player._player.Heading);
            values.AW(DP.ImportantMatches, player._player.ImportantMatches);
            values.AW(DP.Influence, player._player.Influence);
            values.AW(DP.InjuryProneness, player._player.InjuryProneness);
            values.AW(DP.Jumping, player._player.Jumping);
            values.AW(DP.LongShots, player._player.LongShots);
            values.AW(DP.Marking, player._player.Marking);
            values.AW(DP.OffTheBall, player._player.OffTheBall);
            values.AW(DP.OneOnOnes, player._player.OneOnOnes);
            values.AW(DP.Pace, player._player.Pace);
            values.AW(DP.Passing, player._player.Passing);
            values.AW(DP.Penalties, player._player.Penalties);
            values.AW(DP.Positioning, player._player.Positioning);
            values.AW(DP.Reflexes, player._player.Reflexes);
            values.AW(DP.Stamina, player._player.Stamina);
            values.AW(DP.Strength, player._player.Strength);
            values.AW(DP.Tackling, player._player.Tackling);
            values.AW(DP.Teamwork, player._player.Teamwork);
            values.AW(DP.Technique, player._player.Technique);
            values.AW(DP.ThrowIns, player._player.ThrowIns);
            values.AW(DP.Versatility, player._player.Versatility);
            values.AW(DP.WorkRate, player._player.WorkRate);
            values.AW(DP.LeftFoot, player._player.Left);
            values.AW(DP.RightFoot, player._player.Right);

            return(values);
        }
コード例 #4
0
        private void AddWM()
        {
            byte[] role = new byte[Enum.GetNames(typeof(DP)).Length];
            role.AW(DP.Acceleration, 3);
            role.AW(DP.Agility, 1);
            role.AW(DP.Balance, 2);
            role.AW(DP.Corners, 0);
            role.AW(DP.Creativity, 2);
            role.AW(DP.Crossing, 4);
            role.AW(DP.Dribbling, 3);
            role.AW(DP.Finishing, 1);
            role.AW(DP.FreeKicks, 0);
            role.AW(DP.Flair, 0);
            role.AW(DP.Handling, 0);
            role.AW(DP.Heading, 0);
            role.AW(DP.InjuryProneness, 0);
            role.AW(DP.Jumping, 0);
            role.AW(DP.LongShots, 0);
            role.AW(DP.Marking, 1);
            role.AW(DP.OffTheBall, 4);
            role.AW(DP.OneOnOnes, 0);
            role.AW(DP.Pace, 4);
            role.AW(DP.Passing, 5);
            role.AW(DP.Penalties, 0);
            role.AW(DP.Positioning, 1);
            role.AW(DP.Reflexes, 0);
            role.AW(DP.Stamina, 3);
            role.AW(DP.Strength, 0);
            role.AW(DP.Tackling, 1);
            role.AW(DP.Teamwork, 2);
            role.AW(DP.Technique, 3);
            role.AW(DP.ThrowIns, 0);
            role.AW(DP.Versatility, 0);
            role.AW(DP.WorkRate, 2);

            role.AW(DP.LeftFoot, 0);
            role.AW(DP.RightFoot, 0);

            role.AW(DP.MentalityWeight, 70);
            role.AW(DP.PhysicalityWeight, 100);
            role.AW(DP.TechnicalWeight, 100);
            weightings[(int)Roles.WM] = role;
        }
コード例 #5
0
 private void AddGK()
 {
     byte[] role = new byte[Enum.GetNames(typeof(DP)).Length];
     role.AW(DP.Acceleration, 0);
     role.AW(DP.Aggression, 0);
     role.AW(DP.Agility, 1);
     role.AW(DP.Anticipation, 1);
     role.AW(DP.Balance, 0);
     role.AW(DP.Bravery, 0);
     role.AW(DP.Consistency, 1);
     role.AW(DP.Corners, 0);
     role.AW(DP.Creativity, 0);
     role.AW(DP.Crossing, 0);
     role.AW(DP.Decisions, 1);
     role.AW(DP.Dirtiness, 0);
     role.AW(DP.Dribbling, 0);
     role.AW(DP.Finishing, 0);
     role.AW(DP.FreeKicks, 0);
     role.AW(DP.Flair, 0);
     role.AW(DP.Handling, 10);
     role.AW(DP.Heading, 0);
     role.AW(DP.ImportantMatches, 1);
     role.AW(DP.Influence, 0);
     role.AW(DP.InjuryProneness, 0);
     role.AW(DP.Jumping, 3);
     role.AW(DP.LongShots, 0);
     role.AW(DP.Marking, 0);
     role.AW(DP.OffTheBall, 0);
     role.AW(DP.OneOnOnes, 1);
     role.AW(DP.Pace, 0);
     role.AW(DP.Passing, 0);
     role.AW(DP.Penalties, 0);
     role.AW(DP.Positioning, 2);
     role.AW(DP.Reflexes, 3);
     role.AW(DP.Stamina, 0);
     role.AW(DP.Strength, 1);
     role.AW(DP.Tackling, 0);
     role.AW(DP.Teamwork, 0);
     role.AW(DP.Technique, 0);
     role.AW(DP.ThrowIns, 0);
     role.AW(DP.Versatility, 0);
     role.AW(DP.WorkRate, 0);
     role.AW(DP.LeftFoot, 0);
     role.AW(DP.RightFoot, 0);
     role.AW(DP.MentalityWeight, 20);
     role.AW(DP.PhysicalityWeight, 10);
     role.AW(DP.TechnicalWeight, 100);
     weightings[(int)Roles.GK] = role;
 }
コード例 #6
0
        private void AddCB()
        {
            byte[] role = new byte[Enum.GetNames(typeof(DP)).Length];
            AddBaselineMentality(role);

            role.AW(DP.Aggression, 5);
            role.AW(DP.Anticipation, 3);
            role.AW(DP.Bravery, 5);


            role.AW(DP.Acceleration, 2);
            role.AW(DP.Agility, 1);
            role.AW(DP.Balance, 1);
            role.AW(DP.InjuryProneness, 0);
            role.AW(DP.Jumping, 6);
            role.AW(DP.Pace, 2);
            role.AW(DP.Stamina, 1);
            role.AW(DP.Strength, 4);


            role.AW(DP.Corners, 0);
            role.AW(DP.FreeKicks, 0);
            role.AW(DP.Penalties, 0);
            role.AW(DP.ThrowIns, 0);


            role.AW(DP.Creativity, 0);
            role.AW(DP.Crossing, 0);
            role.AW(DP.Dribbling, 0);
            role.AW(DP.Finishing, 0);
            role.AW(DP.Heading, 3);
            role.AW(DP.LongShots, 0);
            role.AW(DP.Marking, 6);
            role.AW(DP.OffTheBall, 0);
            role.AW(DP.Passing, 2);
            role.AW(DP.Positioning, 8);
            role.AW(DP.Tackling, 7);
            role.AW(DP.Technique, 1);


            role.AW(DP.Handling, 0);
            role.AW(DP.OneOnOnes, 0);
            role.AW(DP.Reflexes, 0);

            role.AW(DP.Versatility, 0);


            role.AW(DP.LeftFoot, 0);
            role.AW(DP.RightFoot, 0);

            role.AW(DP.MentalityWeight, 85);
            role.AW(DP.PhysicalityWeight, 100);
            role.AW(DP.TechnicalWeight, 100);

            role.AW(DP.TechnicalInflation, 100);

            weightings[(int)Roles.CB] = role;
        }
コード例 #7
0
        private void AddPO()
        {
            byte[] role = new byte[Enum.GetNames(typeof(DP)).Length];
            AddBaselineMentality(role);
            role.AW(DP.Consistency, 1);
            role.AW(DP.Decisions, 0);
            role.AW(DP.Flair, 1);

            role.AW(DP.Acceleration, 7);
            role.AW(DP.Agility, 7);
            role.AW(DP.Balance, 1);
            role.AW(DP.InjuryProneness, 0);
            role.AW(DP.Jumping, 1);
            role.AW(DP.Pace, 10);
            role.AW(DP.Stamina, 7);
            role.AW(DP.Strength, 3);


            role.AW(DP.Creativity, 1);
            role.AW(DP.Crossing, 1);
            role.AW(DP.Dribbling, 7);
            role.AW(DP.Finishing, 10);
            role.AW(DP.Heading, 1);
            role.AW(DP.LongShots, 1);
            role.AW(DP.Marking, 0);
            role.AW(DP.OffTheBall, 7);
            role.AW(DP.Passing, 1);
            role.AW(DP.Positioning, 0);
            role.AW(DP.Tackling, 0);
            role.AW(DP.Technique, 3);


            role.AW(DP.Versatility, 0);


            role.AW(DP.Handling, 0);
            role.AW(DP.OneOnOnes, 0);
            role.AW(DP.Reflexes, 0);


            role.AW(DP.Corners, 0);
            role.AW(DP.FreeKicks, 0);
            role.AW(DP.ThrowIns, 0);
            role.AW(DP.Penalties, 0);

            role.AW(DP.LeftFoot, 0);
            role.AW(DP.RightFoot, 0);

            role.AW(DP.MentalityWeight, 40);

            role.AW(DP.PhysicalityWeight, 70);
            role.AW(DP.PhysicalInflation, 100);

            role.AW(DP.TechnicalWeight, 100);
            role.AW(DP.TechnicalInflation, 100);

            weightings[(int)Roles.PO] = role;
        }