moagg.prefs.score
Class Score

java.lang.Object
  extended by moagg.prefs.score.Score
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Score>

public class Score
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<Score>

See Also:
Serialized Form

Constructor Summary
Score()
           
 
Method Summary
 void addElapsedTime(long elapsedTime)
           
 void addPoints(int points)
           
 int compareTo(Score other)
           
 boolean equals(java.lang.Object obj)
           
 long getElapsedTime()
           
 java.lang.String getElapsedTimeAsString()
           
 int getPoints()
           
 int getWrecks()
           
 int hashCode()
           
 void incPoints()
           
 void incWrecks()
           
 void setElapsedTime(long elapsedTime)
           
 void setPoints(int points)
           
 void setWrecks(int wrecks)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Score

public Score()
Method Detail

getWrecks

public int getWrecks()

setWrecks

public void setWrecks(int wrecks)

incWrecks

public void incWrecks()

getPoints

public int getPoints()

setPoints

public void setPoints(int points)

incPoints

public void incPoints()

addPoints

public void addPoints(int points)

getElapsedTime

public long getElapsedTime()

setElapsedTime

public void setElapsedTime(long elapsedTime)

addElapsedTime

public void addElapsedTime(long elapsedTime)

getElapsedTimeAsString

public java.lang.String getElapsedTimeAsString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(Score other)
Specified by:
compareTo in interface java.lang.Comparable<Score>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.