Esempio n. 1
0
 public void addActor(Actor what, boolean high, Object classObj) {
   if (high) {
     if (!actors.contains(what)) actors.forceToFront(what, classObj);
   } else {
     addActor(what);
   }
 }
Esempio n. 2
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;
  }
Esempio n. 3
0
 /**
  * Calls an actor to be the next to be executed
  *
  * @param actor
  */
 public void callActor(Actor actor) {
   actors.remove(actor);
   actors.forceToFront(actor);
 }
Esempio n. 4
0
 public void removeAll() {
   actors.removeAll();
 }
Esempio n. 5
0
 public void removeActor(Actor what) {
   actors.remove(what);
 }
Esempio n. 6
0
 public void addActor(Actor what, boolean high) {
   if (high) {
     if (!actors.contains(what)) actors.forceToFront(what);
   } else addActor(what);
 }
Esempio n. 7
0
 public void addActor(Actor what) {
   if (!actors.contains(what)) actors.enqueue(what);
 }
Esempio n. 8
0
 public List<Actor> getActors() {
   return actors.getVector();
 }
Esempio n. 9
0
 public boolean contains(Actor what) {
   return actors.contains(what);
 }