Example #1
0
  /**
   * Gets list messages.
   *
   * @return the list messages
   */
  public ArrayList<String> getListMessages() {
    ArrayList<String> mess = new ArrayList<String>();

    for (String k : arenaIds) {
      Arena ad = this.getArenaById(Integer.parseInt(k));
      mess.add(ad.getArenaListMessage());
    }
    return mess;
  }
Example #2
0
  /**
   * Add new arena.
   *
   * @param ar the ar
   * @return the boolean
   */
  public boolean addNewArena(Arena ar) {

    if (this.total < 1) {
      setup();
    } else {

      this.total = this.total + 1;
      this.nameToId.put(ar.getUniqueMap(), ar.getArenaId());
      this.thearenas.put(ar.getArenaId(), ar);
      this.arenaIds.add(ar.getArenaId().toString());
    }
    return true;
  }