Ejemplo n.º 1
0
  /**
   * Affiche chaque tuile
   *
   * @return Le contenu des ArrayList JeuGauche, JeuDroit et le paysage
   */
  public String toString() {

    String s = "";

    if (attribut == 1) s = "                ";
    if (attribut == 2) s = "            ";
    if (attribut == 3) s = "        ";
    if (attribut == 4) s = "    ";

    for (int i = 0; i < attribut; i++) s += afficherCote(JeuGauche, i);

    s += paysage.getRecto() + " ";

    for (int i = 0; i < attribut; i++) s += afficherCote(JeuDroite, i);

    return s;
  }
Ejemplo n.º 2
0
 /**
  * Ajoute un cube sur un paysage
  *
  * @param cube
  */
 public void ajouterCubeSurPaysage(Cube cube) {
   paysage.ajouterCube(cube);
 }
Ejemplo n.º 3
0
 public String getNom() {
   return paysage.getRecto() + " (" + attribut + ")";
 }