javoids
Class ScoreEntry

java.lang.Object
  extended by javoids.ScoreEntry
All Implemented Interfaces:
java.lang.Comparable<ScoreEntry>

 class ScoreEntry
extends java.lang.Object
implements java.lang.Comparable<ScoreEntry>

A class for holding the high score information of one entry of the high score table.

Author:
mallette

Field Summary
(package private)  java.lang.String duration
          plaey's duration of play
(package private)  java.lang.String level
          player's level reched
(package private)  java.lang.String name
          player's name
(package private)  java.lang.String score
          player's score
 
Constructor Summary
ScoreEntry(java.lang.String _name, java.lang.String _score, java.lang.String _duration, java.lang.String _level)
           
 
Method Summary
 int compareTo(ScoreEntry scoreEntry)
          Compare one score entry to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

java.lang.String name
player's name


score

java.lang.String score
player's score


duration

java.lang.String duration
plaey's duration of play


level

java.lang.String level
player's level reched

Constructor Detail

ScoreEntry

ScoreEntry(java.lang.String _name,
           java.lang.String _score,
           java.lang.String _duration,
           java.lang.String _level)
Parameters:
_name - the player's name
_score - the player's score
_duration - the duration of play
_level - the level reached
Method Detail

compareTo

public int compareTo(ScoreEntry scoreEntry)
Compare one score entry to another.

Specified by:
compareTo in interface java.lang.Comparable<ScoreEntry>
Parameters:
scoreEntry - the other score entry to compare this score entry to.
Returns:
the results of the comparison