示例#1
0
        static bool CheckForCandidates(Matching.IBattleEntry current, Matching.IBattleEntry target)
        {
            if (LimitRatingRange <= MathF.Abs(target.RatingAvg - current.RatingAvg))
            {
                return(false);
            }

            return(true);
        }
示例#2
0
            public bool CanAdd(Matching.IBattleEntry entry)
            {
                if (evolib.Battle.SidePlayersNum < (PlayersCount + entry.Players.Count))
                {
                    return(false);
                }

                return(true);
            }
示例#3
0
            public void Add(Matching.IBattleEntry entry)
            {
                Entries.Add(entry);

                var groupSize = entry.Players.Count;

                PlayersCount += groupSize;
                if (MaxGroupSize < groupSize)
                {
                    MaxGroupSize = groupSize;
                }

                RatingSum += entry.RatingSum;
            }