Class Highscore
java.lang.Object
|
+--Highscore
- class Highscore
- extends java.lang.Object
FishWorld, a point and click game with fishes
Copyright (c) 2001,2002 by Stephan Uhlmann <su@su2.info>
published under the GPL
Field Summary |
(package private) java.lang.String[] |
names
|
(package private) int[] |
points
|
Constructor Summary |
(package private) |
Highscore()
consctructor |
Method Summary |
(package private) int |
addHighscore(int score,
java.lang.String name)
adds score/name to the highscore table,
returns position in highscore table or -1 if no highscore |
(package private) boolean |
isHighscore(int score)
checks if score is in Highscore |
(package private) boolean |
isNewHighscore(int score)
checks if score is a new Highscore |
(package private) java.lang.String |
name(int i)
returns name of player no. |
(package private) int |
points(int i)
returns number of points of player no. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
points
int[] points
names
java.lang.String[] names
Highscore
Highscore()
- consctructor
points
int points(int i)
- returns number of points of player no. i
name
java.lang.String name(int i)
- returns name of player no. i
isHighscore
boolean isHighscore(int score)
- checks if score is in Highscore
isNewHighscore
boolean isNewHighscore(int score)
- checks if score is a new Highscore
addHighscore
int addHighscore(int score,
java.lang.String name)
- adds score/name to the highscore table,
returns position in highscore table or -1 if no highscore