demo.inpro.system.greifarm
Class GameScore

java.lang.Object
  extended by demo.inpro.system.greifarm.GameScore
All Implemented Interfaces:
java.lang.Runnable

public class GameScore
extends java.lang.Object
implements java.lang.Runnable

a nice little highscore that counts down during game play and increments when waste is dropped into the bowl


Field Summary
(package private)  int feelGoodAddition
           
(package private)  int score
           
(package private)  javax.swing.JLabel scoreLabel
           
(package private)  int time
           
 
Constructor Summary
GameScore()
           
 
Method Summary
 int getCombinedScore()
           
 javax.swing.JLabel getScoreLabel()
           
 void increaseScore(int amount)
           
private  void redrawLabel()
           
 void reset()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

int time

score

int score

feelGoodAddition

int feelGoodAddition

scoreLabel

javax.swing.JLabel scoreLabel
Constructor Detail

GameScore

public GameScore()
Method Detail

redrawLabel

private void redrawLabel()

getCombinedScore

public int getCombinedScore()

getScoreLabel

public javax.swing.JLabel getScoreLabel()

reset

public void reset()

increaseScore

public void increaseScore(int amount)

run

public void run()
Specified by:
run in interface java.lang.Runnable