private Double CalculateBaseAttendance(Club hostClub, Club questClub, World world) { /*UInt16 totalClubs = world.ClubRatingList.Size; //TODO ushort? Byte hostPos = world.ClubRatingPosition(hostClub); Byte questPos = world.ClubRatingPosition(questClub); return DEF_ATTENDANCE * totalClubs / (hostPos + questPos);*/ throw new NotImplementedException(); }
public Team(Club club, List<Player> players, String teamName) { //TODO rework the temporary settings of ratings Random r = new Random(); this.GoalkeeperRating = (uint)r.Next(60, 150); this.DefenceRating = (uint)r.Next(180, 750); this.MidfieldRating = (uint)r.Next(180, 750); this.AttackRating = (uint)r.Next(60, 600); this.roster = players; this.club = club; this.teamName = teamName; }
public UInt32 CalculateAttendance(Club hostClub, Club questClub, World world) { return (UInt32)(this.attendanceModifier * CalculateBaseAttendance(hostClub, questClub, world) / MAX_MODIFIER); }