Example #1
0
  public Actor getNextActor() {
    // Debug.say("---"+(ixx++)+"--------");
    if (countdown > 0) {
      countdown--;
      return fixed;
    }

    // actors.printStatus();
    Actor x = (Actor) actors.unqueue();
    // Debug.say(x);

    while (x != null && x.wannaDie()) {
      actors.remove(x);
      x = (Actor) actors.unqueue();
    }
    // actors.enqueue(x);
    return x;
  }
Example #2
0
 /**
  * Calls an actor to be the next to be executed
  *
  * @param actor
  */
 public void callActor(Actor actor) {
   actors.remove(actor);
   actors.forceToFront(actor);
 }
Example #3
0
 public void removeActor(Actor what) {
   actors.remove(what);
 }