Ejemplo n.º 1
0
  /**
   * Check if there are any entries in this stage.
   *
   * @param source the NPC that is the data source
   * @param stage the stage to check
   * @return <code>true</code> in case the NPC contains entries in this stage.
   */
  private boolean checkStageExists(final ParsedNpc source, final WritingStage stage) {
    final int count = source.getDataCount();

    EasyNpcWritable writeable = null;
    for (int i = 0; i < count; ++i) {
      writeable = source.getEasyNpcData(i);
      if (writeable.effectsEasyNpcStage(stage)) {
        return true;
      }
    }

    return false;
  }