be.madoka.aardbei.sokoban
Class ScoreChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.beans.PropertyChangeEvent
              |
              +--be.madoka.aardbei.sokoban.ScoreChangeEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LevelChangeEvent

public class ScoreChangeEvent
extends java.beans.PropertyChangeEvent

Represents a scorechange.

Author:
Tim Van Wassenhove
See Also:
Serialized Form

Constructor Summary
ScoreChangeEvent(Logic logic, int newScore)
          Default constructor.
 
Method Summary
 int getValue()
          Returns the new value.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScoreChangeEvent

public ScoreChangeEvent(Logic logic,
                        int newScore)
Default constructor.

Parameters:
logic - the logic
newScore - the new score
Method Detail

getValue

public int getValue()
Returns the new value.

Returns:
an int giving the new value