Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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;
   }
 }