60 void Rate(
int nId,
const std::vector<RatingStat> *pStats);
71 static float Outcome(
int nScore,
int nOpponentScore);
The rating of one player of an online game, and the results that rate the player afterwards.
Definition ratingstat.h:14
float GetWins() const
Definition ratingstat.h:136
int GetGames() const
Definition ratingstat.h:106
int Rating() const
Report the rating without the bonus of a player past the first games.
static constexpr int kDifferenceCount
The number of entries of sDifferences.
Definition ratingstat.h:95
static float ExpectedScore(int nDifference)
Report the score a player expects against an opponent from the difference of the ratings.
int GetId() const
Definition ratingstat.h:111
static int sDifferences[kDifferenceCount]
The differences of ratings that make a player expect scores of 0.5, 0.51, and so on to 1.
Definition ratingstat.h:103
int GetRating() const
Definition ratingstat.h:126
int GetPoints() const
Definition ratingstat.h:121
int GetOpponents() const
Definition ratingstat.h:116
void SetScore(int nScore)
Definition ratingstat.h:131
void Set(const NetLaunchpadPlayer *pPlayer)
Copy the identifier, the rating, and the record of a player of the session.
static constexpr int kProvisionalGames
The games below which a player's rating comes from the average of the opponents.
Definition ratingstat.h:17
void Rate(int nId, const std::vector< RatingStat > *pStats)
Rate a player from the scores of a game.
static float RatingDifference(float fScore)
Report the difference of ratings that makes a player expect a score, inverting ExpectedScore() by int...
bool IsProvisional() const
Report whether the player has played fewer than kProvisionalGames games.
static float Outcome(int nScore, int nOpponentScore)
Report the outcome of a game for a player.
The description of one player of the online session this console is in.
Definition netlaunchpadplayer.h:13