Commit dce28935 authored by Achille Lacoin's avatar Achille Lacoin
Browse files

Adaptation de la methode tostring de Monde (suppression d'attributs inutiles)

parent 3bd3d858
......@@ -14,7 +14,6 @@ import fr.insarouen.asi.prog.asiaventure.elements.Executable;
*/
public class Monde {
private final String nom;
private Entite[] tabEntite;
private HashMap<String, Entite> CollectionEntite;
/**
......@@ -23,7 +22,6 @@ public class Monde {
*/
public Monde(String nom) {
this.nom = nom;
this.tabEntite = new Entite[0];
this.CollectionEntite = new HashMap<>();
}
......@@ -83,7 +81,7 @@ public class Monde {
StringBuilder txt = new StringBuilder();
txt.append(String.format("Monde : %s, ", this.getNom()));
txt.append("Entite : ");
for (Entite e : this.tabEntite) {
for (Entite e : this.CollectionEntite.values()) {
txt.append(String.format("%s, ", e.getNom()));
}
return txt.toString();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment