zork2Class
Class HighScoreFile

java.lang.Object
  |
  +--zork2Class.HighScoreFile

public class HighScoreFile
extends java.lang.Object

the class HighScoreReader creation :5 juin 2003 at 23:28:43

Version:
1.0
Author:
Michel de VERDELHAN

Constructor Summary
HighScoreFile(java.lang.String dungeon)
          the constructor for HighScoreReader
 
Method Summary
 java.util.Vector readScore()
          method :Vector readScore
read the high score file
 boolean writeScore(java.lang.String name, long score)
          method :boolean writeScore
write the high score in the high score file if score is in the 10 best high score
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighScoreFile

public HighScoreFile(java.lang.String dungeon)
the constructor for HighScoreReader

Method Detail

readScore

public java.util.Vector readScore()
method :Vector readScore
read the high score file


writeScore

public boolean writeScore(java.lang.String name,
                          long score)
method :boolean writeScore
write the high score in the high score file if score is in the 10 best high score

Parameters:
name - player name
score - player score
Returns:
boolean true if the score is a highScore, else false