Beispiel #1
0
        public RatingSet GetMeanRatings()
        {
            RatingSet set = new RatingSet();
            double    n   = (double)AllRecords.Count;

            if (AllRecords.Count == 0)
            {
                return(new RatingSet());
            }

            foreach (RecordLite rec in AllRecords)
            {
                set.Autonomous       += rec.Ratings.Autonomous / n;
                set.Stacking         += rec.Ratings.Stacking / n;
                set.Coopertition     += rec.Ratings.Coopertition / n;
                set.Containers       += rec.Ratings.Containers / n;
                set.Mobility         += rec.Ratings.Mobility / n;
                set.Efficiency       += rec.Ratings.Efficiency / n;
                set.Stability        += rec.Ratings.Stability / n;
                set.Grip             += rec.Ratings.Grip / n;
                set.HumanPlayerSkill += rec.Ratings.HumanPlayerSkill / n;
            }

            return(set);
        }
		public RatingSet GetMeanRatings()
		{
			RatingSet set = new RatingSet();
			double n = (double)AllRecords.Count;

			if (AllRecords.Count == 0)
			{
				return new RatingSet();
			}

			foreach (RecordLite rec in AllRecords)
			{
				set.Autonomous += rec.Ratings.Autonomous / n;
				set.Stacking += rec.Ratings.Stacking / n;
				set.Coopertition += rec.Ratings.Coopertition / n;
				set.Containers += rec.Ratings.Containers / n;
				set.Mobility += rec.Ratings.Mobility / n;
				set.Efficiency += rec.Ratings.Efficiency / n;
				set.Stability += rec.Ratings.Stability / n;
				set.Grip += rec.Ratings.Grip / n;
				set.HumanPlayerSkill += rec.Ratings.HumanPlayerSkill / n;
			}

			return set;
		}
		public RecordLite(Team team, Match match)
		{
			Team = team;
			TeamID = team != null ? team.Number : -1;
			Match = match;
			MatchID = match != null ? match.Number : -1;

			if (match != null)
			{
				Color = match.GetTeamColor(team);
				Position = match.GetTeamPosition(team);
				Ratings = new RatingSet();
			}
		}
        public RecordLite(Team team, Match match)
        {
            Team    = team;
            TeamID  = team != null ? team.Number : -1;
            Match   = match;
            MatchID = match != null ? match.Number : -1;

            if (match != null)
            {
                Color    = match.GetTeamColor(team);
                Position = match.GetTeamPosition(team);
                Ratings  = new RatingSet();
            }
        }
		public LiteSummary(int num, RatingSet _set)
		{
			set = _set;
			Team = num;
		}
		public RatingViewModel()
		{
			Ratings = new RatingSet();
		}