vooga.gameEngine.event
Class RotationChangedEvent

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

public class RotationChangedEvent
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
RotationChangedEvent(java.lang.Object source, Rotation2D rot)
           
 
Method Summary
 Rotation2D getRotation()
          Gives the Rotation2D associated with this RotationChangedEvent.
 
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

RotationChangedEvent

public RotationChangedEvent(java.lang.Object source,
                            Rotation2D rot)
Method Detail

getRotation

public Rotation2D getRotation()
Gives the Rotation2D associated with this RotationChangedEvent.

Returns:
a copy of the Rotation2D