projet-genie-logiciel-systeme/runtime-workspace/fr.n7.game.examples/src-gen/Condition.java

22 lines
416 B
Java
Raw Normal View History

2021-12-09 17:54:08 +00:00
import java.util.List;
import java.util.ArrayList;
public class Condition {
List<ConditionEt> conditionEts;
public Condition(List<ConditionEt> conditionEts) {
this.conditionEts = conditionEts;
}
public Boolean evaluer() {
for (ConditionEt cond : conditionEts) {
if (cond.evaluer()) {
return true;
}
}
return false;
}
}