Class Hiscore
java.lang.Object
|
+----Hiscore
- public class Hiscore
- extends Object
A simple class that implements a hiscore manager through the
GuestBook CGI of GeoCities.
- Version:
- 1.0 beta - 26 September 1997
- Author:
- Leonardo Boselli
tetractys@oocities.com
-
Hiscore(Applet, String)
- This Constructor needs the calling applet and a string that contains
the name of the game (providing support for multiple games).
-
addHiscore(String, String, String)
- This method adds an hiscore to the database.
-
getHiscores()
- This method returns a Vector containing String Arrays.
Hiscore
public Hiscore(Applet applet,
String name)
- This Constructor needs the calling applet and a string that contains
the name of the game (providing support for multiple games).
- Parameters:
- applet - the applet.
- name - the name of the game.
getHiscores
public Vector getHiscores() throws IOException
- This method returns a Vector containing String Arrays.
Every element in a String[3]: the first String is the player's name, the
second the player's wisecrack and the last is the score.
- Returns:
- the hiscores.
addHiscore
public void addHiscore(String name,
String wisecrack,
String score) throws IOException
- This method adds an hiscore to the database.
- Parameters:
- name - the player's name.
- wisecrack - the player's wisecrack.
- score - the player's score.