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

22 lines
416 B
Java

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