From 792dfe3ab1dee1d282ac121913db672e91dac482 Mon Sep 17 00:00:00 2001 From: Charlie Groves Date: Tue, 31 Aug 2010 01:22:07 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/parlor/rating/server/Rating.java | 8 +------- .../threerings/parlor/rating/server/RatingDelegate.java | 2 -- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/java/com/threerings/parlor/rating/server/Rating.java b/src/java/com/threerings/parlor/rating/server/Rating.java index 0845729b..729742c0 100644 --- a/src/java/com/threerings/parlor/rating/server/Rating.java +++ b/src/java/com/threerings/parlor/rating/server/Rating.java @@ -35,17 +35,11 @@ public class Rating implements RatingCodes { /** 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. */ public int experience; - public Rating () - { - this.rating = DEFAULT_RATING; - this.experience = 0; - } - /** * Computes a player's updated rating using a modified version of the * FIDE/ELO system. The rating adjustment is computed for the player versus diff --git a/src/java/com/threerings/parlor/rating/server/RatingDelegate.java b/src/java/com/threerings/parlor/rating/server/RatingDelegate.java index c24d30f4..11b305a5 100644 --- a/src/java/com/threerings/parlor/rating/server/RatingDelegate.java +++ b/src/java/com/threerings/parlor/rating/server/RatingDelegate.java @@ -326,8 +326,6 @@ public abstract class RatingDelegate extends GameManagerDelegate this.playerOid = player.getOid(); this.playerName = player.getVisibleName(); this.playerId = playerId; - this.rating = DEFAULT_RATING; - this.experience = 0; } /**