|
Emini Physics Engine 1.3.5a API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.emini.physics2D.EventSet
public class EventSet
The event set manages the events within a world. All events of a world are referenced here. It ensures that each event can be accessed directly or by index(id)
Field Summary | |
---|---|
protected java.util.Vector |
mEvents
A list of all registered events |
Constructor Summary | |
---|---|
EventSet()
Default Constructor. |
|
EventSet(EventSet other)
Copy constructor. |
Method Summary | |
---|---|
void |
checkEvents(World world,
PhysicsEventListener listener)
Checks all events for triggering. |
EventSet |
copy()
Copies the event set. |
java.util.Vector |
getEvents()
Gets the complete list of events. |
boolean |
isRegistered(Event e)
Checks whether an event is registered in this set. |
void |
registerEvent(Event e)
Registers a new event. |
void |
registerEvents(java.util.Vector newEvents)
Registers new events from a vector. |
void |
removeEvent(Event e)
Removes an event form the event set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector mEvents
Constructor Detail |
---|
public EventSet()
public EventSet(EventSet other)
other
- the event set to copyMethod Detail |
---|
public EventSet copy()
public void registerEvent(Event e)
e
- the event to registerpublic void registerEvents(java.util.Vector newEvents)
newEvents
- vector of new eventspublic void removeEvent(Event e)
e
- the event to removepublic void checkEvents(World world, PhysicsEventListener listener)
world
- the world.listener
- the listener to inform about the triggers.public boolean isRegistered(Event e)
e
- the event to check.
public java.util.Vector getEvents()
|
Emini Physics Engine 1.3.5a API Documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |