Class HighScores
[ Source
| Index
| Back to Nelzan ]
- public class HighScores
- extends Object
- public class HighScores
- extends Object
HighScores - Calls a CGI Script that handles new high scores and
returns Data to be displayed.
Sends a request to
/cgi-bin/high.pl?file=$file&name=$name&s=$score&key=$key
where $file = getParameter("file"), $name = getParamter("name"),
$s = your score, and $key = a static variable.
-
comp
- Instance of Applet for callbacks.
-
dataFile
- URL we are going to connecte to, saved here in case we need to recover.
-
font
-
-
fontSize
-
-
highScore
- String Array to hold the top 5 high scores
-
instrcut
- String Array to hold information on how to play the game.
-
key
-
-
HighScores(Applet)
- Creates and instance of HighScores.
-
paint(Graphics)
- Paints the data stored in highScore[].
-
paintInstructions(Graphics)
- Paints the data stored in instrcut[].
-
sendHigh(int)
- Opens a CGI script with the propper data and downloads the new high
scores.
key
private static final String key
instrcut
String instrcut[]
- String Array to hold information on how to play the game.
highScore
String highScore[]
- String Array to hold the top 5 high scores
comp
Applet comp
- Instance of Applet for callbacks.
dataFile
URL dataFile
- URL we are going to connecte to, saved here in case we need to recover.
font
Font font
fontSize
FontMetrics fontSize
HighScores
HighScores(Applet c)
- Creates and instance of HighScores.
- Parameters:
- c - Instance of an Applet, for call backs.
sendHigh
public void sendHigh(int s)
- Opens a CGI script with the propper data and downloads the new high
scores.
Sends a request to
/cgi-bin/high.pl?file=$file&name=$name&s=$score&key=$key
where $file = getParameter("file"), $name = getParamter("name"),
$s = your score, and $key = a static variable.
- Parameters:
- s - Your Score.
paint
public void paint(Graphics g)
- Paints the data stored in highScore[].
- Parameters:
- g - The Graphics to draw to.
paintInstructions
public void paintInstructions(Graphics g)
- Paints the data stored in instrcut[].
- Parameters:
- g - The Graphics to draw to.
|