fin attributs et constructeurs des classes
This commit is contained in:
parent
526bfab1a8
commit
bff06307c2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
public class ConditionEt {
|
||||
|
||||
ConditionTest[] conditionTests;
|
||||
List<ConditionTest> conditionTests;
|
||||
|
||||
public ConditionEt(ConditionTest[] conditionTests) {
|
||||
this.conditionTests = conditionTests;
|
||||
|
|
|
@ -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": [],
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue