projet-genie-logiciel-systeme/runtime-workspace/fr.n7.game.examples/src-gen/ConditionEt.java
2021-12-09 18:54:08 +01:00

22 lines
437 B
Java

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;
}
}