/// <summary> /// Initializes a new instance of the <see cref="T:StatusQuoBaseball.Base.Coach"/> class. /// </summary> /// <param name="personInfo">PersonBasicInformation</param> /// <param name="awards">string[]</param> public Coach(PersonBasicInformation personInfo, params string[] awards) : base(personInfo.Id, personInfo.LName, personInfo.FName, personInfo.Number, personInfo.NaturalPosition, personInfo.Race, personInfo.Handedness, personInfo.Bats, personInfo.Height, personInfo.Weight, personInfo.Birthday) { this.coachingAwards = awards; #pragma warning disable RECS0021 // Warns about calls to virtual member functions occuring in the constructor BuildToString(); #pragma warning restore RECS0021 // Warns about calls to virtual member functions occuring in the constructor }
/// <summary> /// Initializes a new instance of the <see cref="T:StatusQuoBaseball.Base.Player"/> class from a PersonBasicInformation struct. /// </summary> /// <param name="personInfo">Person info.</param> public Player(PersonBasicInformation personInfo) : base(personInfo.Id, personInfo.LName, personInfo.FName, personInfo.Race, personInfo.Handedness, personInfo.Height, personInfo.Weight, personInfo.Birthday, personInfo.Deathday) { this.number = personInfo.Number; this.naturalPosition = personInfo.NaturalPosition; this.currentPosition = this.naturalPosition; this.throws = personInfo.Handedness; this.bats = personInfo.Bats; #pragma warning disable RECS0021 // Warns about calls to virtual member functions occuring in the constructor BuildToString(); #pragma warning restore RECS0021 // Warns about calls to virtual member functions occuring in the constructor }