import java.util.List; public class Interaction { Condition visible; List connaissances; List objetsRecus; List objetsConso; List actions; public Interaction( Condition visible, List connaissances, List objetsRecus, List objetsConso, List actions) { this.visible = visible; this.connaissances = connaissances; this.objetsRecus = objetsRecus; this.objetsConso = objetsConso; this.actions = actions; } @Override public String toString() { String res = "Interraction :"; int k = 0; for (Action a : this.actions) { if (a.visible.evaluer()) { res += "\n" + k + " " + a; k++; } } return res; } }