game.score
Class CHighscoreTable

java.lang.Object
  extended by game.physics.CStaticShape
      extended by game.score.CHighscoreTable
All Implemented Interfaces:
IGraphicObject

public class CHighscoreTable
extends CStaticShape
implements IGraphicObject

Keeps track of the highscore during a game session.
Can draw itself on top of the screen.

Author:
sroccaserra

Field Summary
private  int m_highscore
           
 
Fields inherited from class game.physics.CStaticShape
m_box, m_gameDisplay, m_isHidden
 
Constructor Summary
CHighscoreTable(IGameDisplay gameDisplay)
           
 
Method Summary
 void draw(java.awt.Graphics g)
           
 int getHighScore()
           
 boolean submitScore(int score)
           
 java.lang.String toString()
           
 
Methods inherited from class game.physics.CStaticShape
animate, cycle, drawBox, getCenter, getVelocity, hide, intersect, isHidden, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface game.graphics.IGraphicObject
animate, cycle, getCenter, getVelocity, intersect
 

Field Detail

m_highscore

private int m_highscore
Constructor Detail

CHighscoreTable

public CHighscoreTable(IGameDisplay gameDisplay)
Parameters:
gameDisplay -
Method Detail

getHighScore

public final int getHighScore()

submitScore

public final boolean submitScore(int score)

draw

public final void draw(java.awt.Graphics g)
Specified by:
draw in interface IGraphicObject

toString

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