Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="id"><see cref="BaseData.Id"/></param>
        /// <param name="firstName"><see cref="FirstName"/></param>
        /// <param name="lastName"><see cref="LastName"/></param>
        /// <param name="commonName"><see cref="CommonName"/></param>
        /// <param name="dateOfBirth"><see cref="_dateOfBirth"/></param>
        /// <param name="yearOfBirth"><see cref="_yearOfBirth"/></param>
        /// <param name="currentAbility"><see cref="CurrentAbility"/></param>
        /// <param name="currentReputation"><see cref="CurrentReputation"/></param>
        /// <param name="homeReputation"><see cref="HomeReputation"/></param>
        /// <param name="potentialAbility"><see cref="PotentialAbility"/></param>
        /// <param name="worldReputation"><see cref="WorldReputation"/></param>
        /// <param name="rightFoot"><see cref="RightFoot"/></param>
        /// <param name="leftFoot"><see cref="LeftFoot"/></param>
        /// <param name="nationality"><see cref="Nationality"/></param>
        /// <param name="secondNationality"><see cref="SecondNationality"/></param>
        /// <param name="clubContract"><see cref="ClubContract"/></param>
        /// <param name="dateContractStart"><see cref="DateContractStart"/></param>
        /// <param name="dateContractEnd"><see cref="DateContractEnd"/></param>
        /// <param name="wage"><see cref="Wage"/></param>
        /// <param name="value"><see cref="Value"/></param>
        /// <param name="caps"><see cref="Caps"/></param>
        /// <param name="intGoals"><see cref="IntGoals"/></param>
        internal PlayerData(int id, string firstName, string lastName, string commonName, DateTime?dateOfBirth, int?yearOfBirth,
                            int currentAbility, int potentialAbility, int homeReputation, int currentReputation, int worldReputation,
                            int rightFoot, int leftFoot, CountryData nationality, CountryData secondNationality, ClubData clubContract,
                            DateTime?dateContractStart, DateTime?dateContractEnd, int wage, int value, int caps, int intGoals)
            : base(id)
        {
            FirstName         = firstName;
            LastName          = lastName;
            CommonName        = commonName;
            _dateOfBirth      = dateOfBirth;
            _yearOfBirth      = yearOfBirth;
            CurrentAbility    = currentAbility;
            PotentialAbility  = potentialAbility;
            HomeReputation    = homeReputation;
            CurrentReputation = currentReputation;
            WorldReputation   = worldReputation;
            RightFoot         = rightFoot;
            LeftFoot          = leftFoot;
            Nationality       = nationality;
            SecondNationality = secondNationality;
            ClubContract      = clubContract;
            DateContractStart = dateContractStart;
            DateContractEnd   = dateContractEnd;
            Value             = value;
            Wage     = wage;
            Caps     = caps;
            IntGoals = intGoals;

            _positions  = Enum.GetValues(typeof(PositionData)).OfType <PositionData>().ToDictionary(p => p, p => 1);
            _sides      = Enum.GetValues(typeof(SideData)).OfType <SideData>().ToDictionary(s => s, p => 1);
            _attributes = new Dictionary <AttributeData, int>();
        }
Пример #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="BaseData.Id"/></param>
 /// <param name="code"><see cref="Code"/></param>
 /// <param name="shortName"><see cref="ShortName"/></param>
 /// <param name="reputation"><see cref="Reputation"/></param>
 /// <param name="confederation"><see cref="Confederation"/></param>
 /// <param name="country"><see cref="Country"/></param>
 internal ClubCompetitionData(int id, string code, string shortName, int reputation,
                              ConfederationData confederation, CountryData country) : base(id)
 {
     Code          = code;
     ShortName     = shortName;
     Reputation    = reputation;
     Confederation = confederation;
     Country       = country;
 }
Пример #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="id"><see cref="BaseData.Id"/></param>
 /// <param name="shortName"><see cref="ShortName"/></param>
 /// <param name="name"><see cref="Name"/></param>
 /// <param name="country"><see cref="Country"/></param>
 /// <param name="reputation"><see cref="Reputation"/></param>
 /// <param name="facilities"><see cref="Facilities"/></param>
 /// <param name="division"><see cref="Division"/></param>
 /// <param name="bank"><see cref="Bank"/></param>
 internal ClubData(int id, string shortName, string name, CountryData country,
                   int reputation, int facilities, ClubCompetitionData division, int bank) : base(id)
 {
     ShortName  = shortName;
     Name       = name;
     Country    = country;
     Reputation = reputation;
     Facilities = facilities;
     Division   = division;
     Bank       = bank;
 }