Exemplo n.º 1
0
  public void resetAllCharacters() {

    for (CharacterStack stack : list) {

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

    for (CharacterStack stack : list) {

      if (!stack.isDone()) {

        return stack;
      }
    }

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

    boolean done = true;

    for (CharacterStack stack : list) {

      if (!stack.isDone()) {

        done = false;
      }
    }

    return done;
  }