Esempio n. 1
0
  public void play() {
    this.isLooping = false;
    this.state = TimelineScenarioState.PLAYING;

    TimelineEngine.getInstance()
        .runTimelineScenario(
            this,
            new Runnable() {
              @Override
              public void run() {
                TimelineEngine.getInstance().playScenario(TimelineScenario.this);
              }
            });
  }
Esempio n. 2
0
 public void playLoop() {
   for (TimelineScenarioActor actor : this.waitingActors) {
     if (!actor.supportsReplay())
       throw new UnsupportedOperationException(
           "Can't loop scenario with actor(s) that don't support replay");
   }
   this.isLooping = true;
   this.state = TimelineScenarioState.PLAYING;
   TimelineEngine.getInstance()
       .runTimelineScenario(
           this,
           new Runnable() {
             @Override
             public void run() {
               TimelineEngine.getInstance().playScenario(TimelineScenario.this);
             }
           });
 }