|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.users.user.UserGameStats
public class UserGameStats
Contains user-specific information about a given game.
Constructor Summary | |
---|---|
UserGameStats(java.lang.String gameName)
Constructor. |
Method Summary | |
---|---|
protected void |
addAchievement(java.lang.String achievement)
Adds this achievement |
protected boolean |
checkAndSetHighScore(int score)
Checks whether the given score is a high score. |
protected void |
favoriteGame()
Set this game as a favorite game. |
protected java.util.List<java.lang.String> |
getAchievements()
|
protected java.lang.String |
getMyGame()
Returns the name of the game associated with this UserGameStats object. |
protected int |
getMyHighScore()
Returns the user's high score for this AbstractGame. |
protected java.util.Date |
getMyLastPlayTime()
Returns the user's last game play time associated with this AbstractGame. |
protected boolean |
isFavorite()
Returns true if the game is a favorite, or false if it is not. |
protected void |
unFavoriteGame()
"Un-favorite" this game. |
protected void |
updateLastPlayTime(java.util.Date playTime)
Updates the most recent game play time with the given Date object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserGameStats(java.lang.String gameName)
game
- the game associated with this UserGameStats objectMethod Detail |
---|
protected boolean checkAndSetHighScore(int score)
score
- the game score
protected void updateLastPlayTime(java.util.Date playTime)
playTime
- the Date object with the most recent play timeprotected void favoriteGame()
protected void unFavoriteGame()
protected java.lang.String getMyGame()
protected java.util.Date getMyLastPlayTime()
protected void addAchievement(java.lang.String achievement)
achievement
- the achievement to addprotected java.util.List<java.lang.String> getAchievements()
protected int getMyHighScore()
protected boolean isFavorite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |