vooga.gameEngine.event
Class PositionChangedEvent

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

public class PositionChangedEvent
extends java.util.EventObject

Fired whenever a call to Tangible.setPosition(Position) is made.

Author:
Justin C. Klaassen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PositionChangedEvent(java.lang.Object source, Position p)
           
 
Method Summary
 Position getPosition()
          Gives the Position associated with this PositionChangedEvent.
 
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

PositionChangedEvent

public PositionChangedEvent(java.lang.Object source,
                            Position p)
Method Detail

getPosition

public Position getPosition()
Gives the Position associated with this PositionChangedEvent.

Returns:
a copy of the Position