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
Method Summary |
void |
receiveEvent(Event event)
For each event, this function will be called. |
int |
wantedEvents()
What events are wanted from the object? |
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
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