We're fine with the class filling in default values outside of a constructor
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@965 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -35,17 +35,11 @@ public class Rating
|
|||||||
implements RatingCodes
|
implements RatingCodes
|
||||||
{
|
{
|
||||||
/** The player's rating for our game. */
|
/** The player's rating for our game. */
|
||||||
public int rating;
|
public int rating = DEFAULT_RATING;
|
||||||
|
|
||||||
/** The number of times the player's played our game. */
|
/** The number of times the player's played our game. */
|
||||||
public int experience;
|
public int experience;
|
||||||
|
|
||||||
public Rating ()
|
|
||||||
{
|
|
||||||
this.rating = DEFAULT_RATING;
|
|
||||||
this.experience = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes a player's updated rating using a modified version of the
|
* Computes a player's updated rating using a modified version of the
|
||||||
* FIDE/ELO system. The rating adjustment is computed for the player versus
|
* FIDE/ELO system. The rating adjustment is computed for the player versus
|
||||||
|
|||||||
@@ -326,8 +326,6 @@ public abstract class RatingDelegate extends GameManagerDelegate
|
|||||||
this.playerOid = player.getOid();
|
this.playerOid = player.getOid();
|
||||||
this.playerName = player.getVisibleName();
|
this.playerName = player.getVisibleName();
|
||||||
this.playerId = playerId;
|
this.playerId = playerId;
|
||||||
this.rating = DEFAULT_RATING;
|
|
||||||
this.experience = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user