GameField
Class HighScore

java.lang.Object
  extended by GameField.HighScore

public class HighScore
extends java.lang.Object


Field Summary
static java.lang.String HIGHSCORE_FILE
           
private static java.util.Vector<Player> players
           
static int TAILLE_CLASSEMENT
           
 
Constructor Summary
HighScore()
           
 
Method Summary
static java.util.Vector<Player> getPlayers()
          Get the value of players
static void loadScores(java.lang.String filename)
          load highscores in file filename
static void putPlayer(Player p)
          Put the player p in high score if it's necessary
static void saveScores(java.lang.String filename)
          Save high scores in file filename
static void setPlayers(java.util.Vector<Player> value)
          Set the value of players
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HIGHSCORE_FILE

public static final java.lang.String HIGHSCORE_FILE
See Also:
Constant Field Values

players

private static java.util.Vector<Player> players

TAILLE_CLASSEMENT

public static final int TAILLE_CLASSEMENT
See Also:
Constant Field Values
Constructor Detail

HighScore

public HighScore()
Method Detail

getPlayers

public static java.util.Vector<Player> getPlayers()
Get the value of players

Returns:
the value of players

loadScores

public static void loadScores(java.lang.String filename)
load highscores in file filename

Parameters:
filename -

putPlayer

public static void putPlayer(Player p)
Put the player p in high score if it's necessary

Parameters:
p -

saveScores

public static void saveScores(java.lang.String filename)
Save high scores in file filename

Parameters:
filename -

setPlayers

public static void setPlayers(java.util.Vector<Player> value)
Set the value of players


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
representation of this object