com.threerings.parlor.rating.server
Class RatingDelegate.PlayerRating

java.lang.Object
  extended by com.threerings.parlor.rating.server.Rating
      extended by com.threerings.parlor.rating.server.RatingDelegate.PlayerRating
All Implemented Interfaces:
RatingCodes, Cloneable
Enclosing class:
RatingDelegate

protected static class RatingDelegate.PlayerRating
extends Rating
implements Cloneable

Encapsulates the rating/experience tuple representing a player's rating for a game.


Field Summary
 boolean modified
          Whether or not this rating needs to be written back to the database.
 int playerId
          The id of the rated player.
 Name playerName
          The name of the rated player.
 int playerOid
          The oid of the rated player.
 
Fields inherited from class com.threerings.parlor.rating.server.Rating
experience, rating
 
Fields inherited from interface com.threerings.parlor.rating.data.RatingCodes
DEFAULT_RATING, MAXIMUM_RATING, MINIMUM_RATING
 
Constructor Summary
RatingDelegate.PlayerRating(BodyObject player, int playerId)
          Sets up a new RatingDelegate.PlayerRating object with default values.
 
Method Summary
 RatingDelegate.PlayerRating cloneForSave()
          Duplicates this rating and clears its modified status.
 
Methods inherited from class com.threerings.parlor.rating.server.Rating
computeAdjustment, computeRating, isProvisional, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

playerOid

public int playerOid
The oid of the rated player.


playerName

public Name playerName
The name of the rated player.


playerId

public int playerId
The id of the rated player.


modified

public boolean modified
Whether or not this rating needs to be written back to the database.

Constructor Detail

RatingDelegate.PlayerRating

public RatingDelegate.PlayerRating(BodyObject player,
                                   int playerId)
Sets up a new RatingDelegate.PlayerRating object with default values.

Method Detail

cloneForSave

public RatingDelegate.PlayerRating cloneForSave()
Duplicates this rating and clears its modified status.