wyvern.lib.event
Class MapMotionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bywyvern.lib.event.MapMotionEvent
All Implemented Interfaces:
java.io.Serializable

public class MapMotionEvent
extends java.util.EventObject

Event fired when an object being tracked by a MapMotionListener moves in a map.

Version:
1.0, Oct 28, 2003
Author:
Steve Yegge
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapMotionEvent(GameMap map, GameObject obj, int startX, int startY, int destX, int destY)
          Constructs a new MapMotionEvent.
MapMotionEvent(GameMap map, GameObject obj, Point src, Point dest)
          Constructs a new MapMotionEvent
 
Method Summary
 int getDestX()
          Returns x map location where the object ended
 int getDestY()
          Returns y map location where the object ended
 GameMap getMap()
          Returns map where the event occurred
 int getStartX()
          Returns x map location where the object started
 int getStartY()
          Returns y map location where the object started
 GameObject getTarget()
          Returns object that moved
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapMotionEvent

public MapMotionEvent(GameMap map,
                      GameObject obj,
                      Point src,
                      Point dest)
Constructs a new MapMotionEvent


MapMotionEvent

public MapMotionEvent(GameMap map,
                      GameObject obj,
                      int startX,
                      int startY,
                      int destX,
                      int destY)
Constructs a new MapMotionEvent.

Method Detail

getMap

public GameMap getMap()
Returns map where the event occurred

Returns:
map where the event occurred

getTarget

public GameObject getTarget()
Returns object that moved

Returns:
object that moved

getStartX

public int getStartX()
Returns x map location where the object started

Returns:
x map location where the object started

getStartY

public int getStartY()
Returns y map location where the object started

Returns:
y map location where the object started

getDestX

public int getDestX()
Returns x map location where the object ended

Returns:
x map location where the object ended

getDestY

public int getDestY()
Returns y map location where the object ended

Returns:
y map location where the object ended

toString

public java.lang.String toString()