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

22 lines
437 B
Java
Raw Normal View History

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