org.jadv.events
Class ObjectSeenEvent

java.lang.Object
  |
  +--org.jadv.events.Event
        |
        +--org.jadv.events.ObjectSeenEvent

public class ObjectSeenEvent
extends Event

Event that tells an target object, that it can see another object.

Author:
neitzel

Field Summary
private  AcceptEvents _obj
           
private  java.lang.String _seenObjectID
           
private  int _x
           
private  int _y
           
 
Fields inherited from class org.jadv.events.Event
_NEXT
 
Constructor Summary
ObjectSeenEvent(AcceptEvents obj, java.lang.String seenObjID, int x, int y)
           
 
Method Summary
 void doEvent()
          Give this event to the target object
 java.lang.String getSeenObjectID()
          Get the seen object.
 int getX()
          Get the x coordinate of the seen object
 int getY()
          Get the y coordinate of the seen object
 void markBad()
          markBad() Mark an Event as bad.
 
Methods inherited from class org.jadv.events.Event
findObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_obj

private AcceptEvents _obj

_seenObjectID

private java.lang.String _seenObjectID

_x

private int _x

_y

private int _y
Constructor Detail

ObjectSeenEvent

public ObjectSeenEvent(AcceptEvents obj,
                       java.lang.String seenObjID,
                       int x,
                       int y)
Method Detail

getSeenObjectID

public java.lang.String getSeenObjectID()
Get the seen object.

Returns:
JAdvObject

getX

public int getX()
Get the x coordinate of the seen object

Returns:
int

getY

public int getY()
Get the y coordinate of the seen object

Returns:
int

doEvent

public void doEvent()
Give this event to the target object

Specified by:
doEvent in class Event
See Also:
Event.doEvent()

markBad

public void markBad()
Description copied from class: Event
markBad() Mark an Event as bad. This means: This event wasn't finished in time. If possible, something should be done (e.g. turning the Hearbeat of an Object off, Stop a timer, ... Maybe writing some Message to the developer!

Specified by:
markBad in class Event
See Also:
Event.markBad()