Ejemplo n.º 1
0
  public static String infoComplete() {
    String info = "";
    try {
      // Board
      info = infoGame();

      // Players
      ArrayList<I_InfoPlayer> players = game.getPlayers();
      for (int i = 0; i < players.size(); i++) {
        info += "%%%" + infoPlayer(players.get(i));
      }
      info += "%%%%%";
      info += Integer.toString(ghostdx[0]);
      for (int i = 1; i < game.getNrofghosts(); i++) {
        info += " " + Integer.toString(ghostdx[i]);
      }
      for (int i = 0; i < game.getNrofghosts(); i++) {
        info += " " + Integer.toString(ghostdy[i]);
      }
      for (int i = 0; i < game.getNrofghosts(); i++) {
        info += " " + Integer.toString(ghostspeed[i]);
      }

    } catch (Exception exc) {
      exc.printStackTrace();
    }
    return info;
  }