be.madoka.aardbei.sokoban
Class PositionChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.beans.PropertyChangeEvent
              |
              +--be.madoka.aardbei.sokoban.PositionChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class PositionChangeEvent
extends java.beans.PropertyChangeEvent

Represents a change of Position.

Author:
Tim Van Wassenhove
See Also:
Serialized Form

Constructor Summary
PositionChangeEvent(java.lang.Object object, Position oldPosition, Position newPosition, int direction)
          Default constructor.
 
Method Summary
 int getDirection()
          Gives the direction of the PositionChangeEvent.
 
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

PositionChangeEvent

public PositionChangeEvent(java.lang.Object object,
                           Position oldPosition,
                           Position newPosition,
                           int direction)
Default constructor.

Parameters:
object - the object
oldPosition - the old Position
newPosition - the new Position
direction - the direction
Method Detail

getDirection

public int getDirection()
Gives the direction of the PositionChangeEvent.

Returns:
a int specifying the direction