dualroids
Class HighScoreHandler

java.lang.Object
  |
  +--dualroids.HighScoreHandler

public final class HighScoreHandler
extends Object

A class for handling the high score file.


Field Summary
(package private)  String[] names
          The table of the names of the famed players
(package private)  int[] points
          The table of the points of the famed players
private static String scoreFile
          The name of the high score file.
 
Constructor Summary
HighScoreHandler(ClientModelConnector cmc)
          Constucts a new HighScoreHandler and does the file IO.
 
Method Summary
 String[] getNames()
          Returns the table of the names of the famed players
 int[] getPoints()
          Returns the table of the points of the famed players
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

scoreFile

private static final String scoreFile
The name of the high score file.

names

String[] names
The table of the names of the famed players

points

int[] points
The table of the points of the famed players
Constructor Detail

HighScoreHandler

public HighScoreHandler(ClientModelConnector cmc)
Constucts a new HighScoreHandler and does the file IO.
Parameters:
cmc - the ClientModelConnector holding the scores of the current game
Method Detail

getNames

public String[] getNames()
Returns the table of the names of the famed players
Returns:
the table of the names of the famed players

getPoints

public int[] getPoints()
Returns the table of the points of the famed players
Returns:
the table of the points of the famed players


Dualroids was written by Oskar Ojala, Yrjö Kari-Koskinen and Henri Sivonen