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
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 |
PositionChangeEvent
public PositionChangeEvent(java.lang.Object object,
Position oldPosition,
Position newPosition,
int direction)
- Default constructor.
- Parameters:
object
- the objectoldPosition
- the old PositionnewPosition
- the new Positiondirection
- the direction
getDirection
public int getDirection()
- Gives the direction of the PositionChangeEvent.
- Returns:
- a
int
specifying the direction