예제 #1
0
  /**
   * Checking if page down could be possible
   *
   * @return true if yes
   */
  public boolean makeUpPossiblle() {
    if (maze != null) {
      int[][][] data = maze.getMaze();

      if ((pos.getX() < data.length - 1) && (data[pos.getX() + 1][pos.getY()][pos.getZ()] == 0)) {
        return true;
      } else {
        return false;
      }
    } else {
      return false;
    }
  }
예제 #2
0
  /**
   * Checking if page up could be possible
   *
   * @return true if yes
   */
  public boolean makeDownPossiblle() {
    if (maze != null) {
      int[][][] data = maze.getMaze();

      if ((pos.getX() > 0) && (data[pos.getX() - 1][pos.getY()][pos.getZ()] == 0)) {
        return true;
      } else {
        return false;
      }
    } else {
      return false;
    }
  }