fin attributs et constructeurs des classes

This commit is contained in:
gdamms 2021-12-01 09:09:27 +01:00
parent 526bfab1a8
commit bff06307c2
6 changed files with 16 additions and 12 deletions

View file

@ -1,9 +1,11 @@
public class Condition {
String condition;
ConditionEt[] conditionEts;
List<ConditionEt> conditionEts;
public Condition(String condition, ConditionEt[] conditionEts) {
public Condition(
String condition,
List<ConditionEt> conditionEts) {
this.condition = condition;
this.conditionEts = conditionEts;
}

View file

@ -3,7 +3,9 @@ public class ConditionConnaissance implements ConditionTest {
Connaissance connaissance;
Boolean negation;
public ConditionConnaissance(String connaissance, Boolean negation) {
public ConditionConnaissance(
Connaissance connaissance,
Boolean negation) {
this.connaissance = connaissance;
this.negation = negation;
}

View file

@ -1,6 +1,6 @@
public class ConditionEt {
ConditionTest[] conditionTests;
List<ConditionTest> conditionTests;
public ConditionEt(ConditionTest[] conditionTests) {
this.conditionTests = conditionTests;

View file

@ -63,7 +63,7 @@
"lieu_in": "Énigme",
"lieu_out": "Succès",
"ouvert": "(true)",
"visible": "(connaissance_Réussite==1)",
"visible": "(Réussite==1)",
"obligatoire": "(false)",
"connaissances_gift": [],
"objets_gift": [],
@ -79,7 +79,7 @@
"lieu_in": "Énigme",
"lieu_out": "Échec",
"ouvert": "(true)",
"visible": "(objet_tentatives==0)",
"visible": "(tentatives==0)",
"obligatoire": "(false)",
"connaissances": [],
"objets": [],

View file

@ -130,15 +130,15 @@ ConditionTest:
;
ConditionConnaissance:
'connaissance_' connaissance=Nom
connaissance=Nom
;
NOTConditionConnaissance:
'!' 'connaissance_' connaissance=Nom
'!' connaissance=Nom
;
ConditionObjet:
'objet_' objet=Nom comparateur=Comparateur nombre=INT
objet=Nom comparateur=Comparateur nombre=INT
;
Comparateur:

View file

@ -130,15 +130,15 @@ ConditionTest:
;
ConditionConnaissance:
'connaissance_' connaissance=Nom
connaissance=Nom
;
NOTConditionConnaissance:
'!' 'connaissance_' connaissance=Nom
'!' connaissance=Nom
;
ConditionObjet:
'objet_' objet=Nom comparateur=Comparateur nombre=INT
objet=Nom comparateur=Comparateur nombre=INT
;
Comparateur: