public RoomLoop( RunRoom room, EventManager eventManager, IDraw drawListener, GroovyEngine groovyEngine) { eventManager.clearLocalVariables(); for (RunObject o : room.getObjects()) { eventManager.addLocalVariablesMap(o.getInstanceId(), o.getVariableMap()); } gameManager = new GameEventManager(room, eventManager, drawListener, groovyEngine); createRoomLoop(); }
public void draw() { switch (this.speed) { case Replay.HALF: case Replay.NORMAL: case Replay.DOUBLE: for (EventData obj : this.objects.values()) { EventManager.getInstance().sendEvent("draw", obj); } break; default: break; } }