@Test public void testQueueEvent () { EventManager manager = new EventManager("test", false); assertEquals(0, manager.activeQueue); assertNull(manager.eventQueue[0].poll()); assertNull(manager.eventQueue[1].poll()); manager.queueEvent(new DummyEventDataObject()); assertNotNull(manager.eventQueue[0].poll()); assertNull(manager.eventQueue[1].poll()); assertNull(manager.eventQueue[0].poll()); manager.queueEvent(new DummyEventDataObject()); manager.update(); assertNull(manager.eventQueue[0].poll()); assertNull(manager.eventQueue[1].poll()); }
public void queueEvent (EventData event) { this.eventQueue[this.activeQueue].put(event); }
EventManager { public void queueEvent (EventData event) { this.eventQueue[this.activeQueue].put(event); } }
EventManager { public void queueEvent (EventData event) { this.eventQueue[this.activeQueue].put(event); } EventManager(String name, boolean setAsGlobal); }
EventManager { public void queueEvent (EventData event) { this.eventQueue[this.activeQueue].put(event); } EventManager(String name, boolean setAsGlobal); void update(); void update(int maxMillis); void queueEvent(EventData event); void triggerEvent(EventData event); void addListener(int typeID, EventListener<T> listener); void removeListener(int typeID, EventListener<T> listener); static final EventManager getInstance(); }
EventManager { public void queueEvent (EventData event) { this.eventQueue[this.activeQueue].put(event); } EventManager(String name, boolean setAsGlobal); void update(); void update(int maxMillis); void queueEvent(EventData event); void triggerEvent(EventData event); void addListener(int typeID, EventListener<T> listener); void removeListener(int typeID, EventListener<T> listener); static final EventManager getInstance();  }