org.mgif.score
Interface ScoreManager


public interface ScoreManager

Score recording interface


Method Summary
 Score getScore()
          Get this user's current score for this session in the first or only score table.
 Score getScore(int table)
          Get this user's current score for this session from a particular table.
 void setScore(int score)
          Set this user's score for this session in the first or only score table.
 void setScore(int score, java.util.Date whenAchieved)
          Set this user's score for this session in the first or only score table.
 void setScore(int table, int score)
          Set this user's score for this session in a particular table.
 void setScore(int table, int score, java.util.Date whenAchieved)
          Set this user's score for this session in a particular table.
 

Method Detail

getScore

public Score getScore()
Get this user's current score for this session in the first or only score table.
Returns:
The users score if already recorded - null otherwise.

getScore

public Score getScore(int table)
Get this user's current score for this session from a particular table.
Parameters:
table - Score table from which to get the score.
Returns:
The users score if already recorded - null otherwise.

setScore

public void setScore(int score)
Set this user's score for this session in the first or only score table.
Parameters:
score - The score to be recorded.

setScore

public void setScore(int score,
                     java.util.Date whenAchieved)
Set this user's score for this session in the first or only score table.
Parameters:
score - The score to be recorded.
whenAchieved - When the score was achieved.

setScore

public void setScore(int table,
                     int score)
Set this user's score for this session in a particular table.
Parameters:
table - Score table in which to set this score.
score - The score to be recorded.

setScore

public void setScore(int table,
                     int score,
                     java.util.Date whenAchieved)
Set this user's score for this session in a particular table.
Parameters:
table - Score table in which to set this score.
score - The score to be recorded.
whenAchieved - When the score was achieved.


Copyright © 2002 Mobile Games Interoperability Forum. All rights reserved.
This source code is protected by the legal notice posted at http://www.mgif.org/docs/notice.html