Esempio n. 1
0
  public void resetAllCharacters() {

    for (CharacterStack stack : list) {

      stack.setDone(false);
    }
  }
Esempio n. 2
0
  public CharacterStack nextActingCharacter() {

    for (CharacterStack stack : list) {

      if (!stack.isDone()) {

        return stack;
      }
    }

    return null;
  }
Esempio n. 3
0
  public boolean isAllDone() {

    boolean done = true;

    for (CharacterStack stack : list) {

      if (!stack.isDone()) {

        done = false;
      }
    }

    return done;
  }