vooga.gameEngine.event
Class ScoreEvent

java.lang.Object
  extended by java.util.EventObject
      extended by vooga.gameEngine.event.ScoreEvent
All Implemented Interfaces:
java.io.Serializable

public class ScoreEvent
extends java.util.EventObject

Event used to communicate the score of a game

Author:
Scott Brothers
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ScoreEvent(java.lang.Object source, double score)
          Constructs a ScoreEvent given its source and the score it is to report.
 
Method Summary
 double getScore()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScoreEvent

public ScoreEvent(java.lang.Object source,
                  double score)
Constructs a ScoreEvent given its source and the score it is to report.

Parameters:
source - that fires the event
score - of the game
Method Detail

getScore

public double getScore()
Returns:
the score