コード例 #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);
        }
コード例 #2
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;
		}
コード例 #3
0
		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();
			}
		}
コード例 #4
0
        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();
            }
        }
コード例 #5
0
		public LiteSummary(int num, RatingSet _set)
		{
			set = _set;
			Team = num;
		}
コード例 #6
0
		public RatingViewModel()
		{
			Ratings = new RatingSet();
		}