2021-12-01 19:55:46 +00:00
|
|
|
import java.util.List;
|
2021-11-30 19:49:01 +00:00
|
|
|
|
|
|
|
public class Explorateur {
|
|
|
|
int taille;
|
2021-12-01 07:58:07 +00:00
|
|
|
List<Connaissance> connaissances;
|
|
|
|
List<Objet> objets;
|
2021-11-30 19:49:01 +00:00
|
|
|
|
|
|
|
public Explorateur(
|
|
|
|
int taille,
|
2021-12-01 07:58:07 +00:00
|
|
|
List<Connaissance> connaissances,
|
|
|
|
List<Objet> objets) {
|
2021-11-30 19:49:01 +00:00
|
|
|
this.taille = taille;
|
|
|
|
this.connaissances = connaissances;
|
|
|
|
this.objets = objets;
|
|
|
|
}
|
2021-12-01 19:55:46 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
2021-12-02 13:23:06 +00:00
|
|
|
String txt = "Objets :\n";
|
2021-12-01 19:55:46 +00:00
|
|
|
for (Objet c : this.objets) {
|
2021-12-02 13:23:06 +00:00
|
|
|
txt += c + " ";
|
2021-12-01 19:55:46 +00:00
|
|
|
}
|
2021-12-02 13:23:06 +00:00
|
|
|
txt += "\n\nConnaissances :\n";
|
2021-12-01 19:55:46 +00:00
|
|
|
for (Connaissance c : this.connaissances) {
|
2021-12-02 13:23:06 +00:00
|
|
|
txt += c + " ";
|
2021-12-01 19:55:46 +00:00
|
|
|
}
|
2021-12-02 13:23:06 +00:00
|
|
|
txt += "\n===================================================";
|
2021-12-01 19:55:46 +00:00
|
|
|
return txt;
|
|
|
|
}
|
|
|
|
|
2021-11-30 19:49:01 +00:00
|
|
|
}
|