org.jadv.basic.interfaces
Interface AcceptEvents

All Known Implementing Classes:
NPC

public interface AcceptEvents

All Objects, that wants to receive any events, must implement this interface

Author:
neitzel

Field Summary
static int WANTEVENT_MESSAGES
           
static int WANTEVENT_NOLONGERSEEN
           
static int WANTEVENT_SEENOBJECTS
           
 
Method Summary
 void receiveEvent(Event event)
          For each event, this function will be called.
 int wantedEvents()
          What events are wanted from the object?
 

Field Detail

WANTEVENT_SEENOBJECTS

public static final int WANTEVENT_SEENOBJECTS
See Also:
Constant Field Values

WANTEVENT_NOLONGERSEEN

public static final int WANTEVENT_NOLONGERSEEN
See Also:
Constant Field Values

WANTEVENT_MESSAGES

public static final int WANTEVENT_MESSAGES
See Also:
Constant Field Values
Method Detail

receiveEvent

public void receiveEvent(Event event)
For each event, this function will be called.

Parameters:
event - - Event to handle

wantedEvents

public int wantedEvents()
What events are wanted from the object?

Returns:
int - mask of wanted events