diff --git a/runtime-workspace/fr.n7.game.examples/src-gen/Description.java b/runtime-workspace/fr.n7.game.examples/src-gen/Description.java
index 60a3191..5be91aa 100644
--- a/runtime-workspace/fr.n7.game.examples/src-gen/Description.java
+++ b/runtime-workspace/fr.n7.game.examples/src-gen/Description.java
@@ -1,5 +1,3 @@
-import java.util.List;
-
public class Description {
String texte;
Condition condition;
diff --git a/runtime-workspace/fr.n7.game.examples/src-gen/Prototype.java b/runtime-workspace/fr.n7.game.examples/src-gen/Prototype.java
index 542c04b..ad98699 100644
--- a/runtime-workspace/fr.n7.game.examples/src-gen/Prototype.java
+++ b/runtime-workspace/fr.n7.game.examples/src-gen/Prototype.java
@@ -4,634 +4,443 @@ import java.util.Map;
import static java.util.Map.entry;
public class Prototype {
-public static void main(String[] args) {
+ public static void main(String[] args) {
-// "Objets"
-Map jeu_objets = Map.ofEntries(
- entry(
- "warpToken",
- new Objet(
- "warpToken",
- 1,
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- ),
- new ConditionBoolean(
- true
-
- ),
- new ConditionBoolean(
- true
-
- )
- ),
- List.of(
- new ConditionBoolean(
- true
-
- ),
- new ConditionBoolean(
- false
-
- )
- ),
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- List.of(
- new Description(
- "Description1",
- "warpToken description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- )
- )
- ),
- entry(
- "warpTicket",
- new Objet(
- "warpTicket",
- 1,
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- List.of(
- new Description(
- "Description1",
- "warpTicket description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- )
- )
- ),
- entry(
- "warpReceipt",
- new Objet(
- "warpReceipt",
- 1,
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- List.of(
- new Description(
- "Description1",
- "warpReceipt description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- )
- )
- )
-);
-
-// "Connaissances"
-Map jeu_connaissances = Map.ofEntries(
-);
-
-// "Transformations"
-Map jeu_transformations = Map.ofEntries(
-);
-
-// "Explorateur"
-Jeu.explorateur = new Explorateur(
- 5,
- new ArrayList<>(List.of(
- )),
- new ArrayList<>(List.of(
- jeu_objets.get("warpTicket")
- ))
-);
-
-// "Personnes"
-Map jeu_personnes = Map.ofEntries(
- entry(
- "cashier",
- new Personne(
- "cashier",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- List.of(
- new Interaction(
- "Parler",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new ArrayList<>(List.of(
- )),
- new ArrayList<>(List.of(
- )), // TODO: inverser recu et conso
- new ArrayList<>(List.of(
- )),
- List.of(
- new Action(
- "Acheter",
- new Condition(
- List.of(
- List.of(
- new ConditionObjet(
- jeu_objets.get("warpTicket"),
- "==",
- 1
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new ArrayList<>(List.of(
- )),
- new ArrayList<>(List.of(
- jeu_objets.get("warpToken"),
- jeu_objets.get("warpReceipt")
- )),
- new ArrayList<>(List.of(
- jeu_objets.get("warpTicket")
- )),
- List.of(
- new Description(
- "Description1",
- "Acheter un ticket",
- new Condition(
+ // "Objets"
+ Map jeu_objets = Map.ofEntries(
+ entry(
+ "warpToken",
+ new Objet(
+ "warpToken",
+ 1,
+ new Condition(
List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- )
- ),
- new Action(
- "Quitter",
- new Condition(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ ),
+ new ConditionBoolean(
+ true
+
+ ),
+ new ConditionBoolean(
+ true
+
+ )),
+ List.of(
+ new ConditionBoolean(
+ true
+
+ ),
+ new ConditionBoolean(
+ false
+
+ )),
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new ArrayList<>(List.of(
- )),
- new ArrayList<>(List.of(
- )),
- new ArrayList<>(List.of(
- )),
- List.of(
- new Description(
- "Description1",
- "Quitter",
- new Condition(
+ new Description(
+ "Description1",
+ "warpToken description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))))))),
+ entry(
+ "warpTicket",
+ new Objet(
+ "warpTicket",
+ 1,
+ new Condition(
List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- )
- )
- )
- )
- )
- )
- )
-);
+ List.of(
+ new ConditionBoolean(
+ true
-// "Lieux"
-Map territoire_lieux = Map.ofEntries(
- entry(
- "preWarp",
- new Lieu(
- "preWarp",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- List.of(
- jeu_personnes.get("cashier")
- ),
- List.of(
- new Description(
- "Description1",
- "preWarp description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- ),
- new ArrayList<>(List.of(
- )),
- List.of(
- )
- )
- ),
- entry(
- "postWarp",
- new Lieu(
- "postWarp",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- List.of(
- ),
- List.of(
- new Description(
- "Description1",
- "postWarp description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- ),
- new ArrayList<>(List.of(
- )),
- List.of(
- )
- )
- ),
- entry(
- "END",
- new Lieu(
- "END",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- List.of(
- ),
- List.of(
- new Description(
- "Description1",
- "END description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- ),
- new ArrayList<>(List.of(
- )),
- List.of(
- )
- )
- )
-);
+ )))),
+ List.of(
+ new Description(
+ "Description1",
+ "warpTicket description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
-// "Chemins"
-Map territoire_chemins = Map.ofEntries(
- entry(
- "Warp",
- new Chemin(
- "Warp",
- territoire_lieux.get("preWarp"),
- territoire_lieux.get("postWarp"),
- new Condition(
- List.of(
- List.of(
- new ConditionObjet(
- jeu_objets.get("warpToken"),
- ">",
- 0
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- List.of(
- ),
- List.of(
- ),
- List.of(
- jeu_objets.get("warpToken")
- ),
- List.of(
- new Description(
- "DescriptionToken",
- "Warp description (need token)",
- new Condition(
- List.of(
- List.of(
- new ConditionObjet(
- jeu_objets.get("warpToken"),
- "==",
- 0
- )
- )
- )
- )
- ),
- new Description(
- "DescriptionNoToken",
- "Warp description (token acquired)",
- new Condition(
- List.of(
- List.of(
- new ConditionObjet(
- jeu_objets.get("warpToken"),
- "==",
- 1
- )
- )
- )
- )
- )
- )
- )
- ),
- entry(
- "EndChemin",
- new Chemin(
- "EndChemin",
- territoire_lieux.get("postWarp"),
- territoire_lieux.get("END"),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- ),
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- false
-
- )
- )
- )
- ),
- List.of(
- ),
- List.of(
- ),
- List.of(
- ),
- List.of(
- new Description(
- "DescriptionToken",
- "END description",
- new Condition(
- List.of(
- List.of(
- new ConditionBoolean(
- true
-
- )
- )
- )
- )
- )
- )
- )
- )
-);
+ )))))))),
+ entry(
+ "warpReceipt",
+ new Objet(
+ "warpReceipt",
+ 1,
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
-// Territoire
-Territoire jeu_territoire = new Territoire(territoire_lieux, territoire_chemins);
+ )))),
+ List.of(
+ new Description(
+ "Description1",
+ "warpReceipt description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
-// Jeu
-Jeu ze_GAME = new Jeu(
- jeu_territoire,
- jeu_objets,
- jeu_connaissances,
- jeu_personnes,
- jeu_transformations
-);
+ )))))))));
-ze_GAME.jouer();
+ // "Connaissances"
+ Map jeu_connaissances = Map.ofEntries();
-}
+ // "Transformations"
+ Map jeu_transformations = Map.ofEntries();
+
+ // "Explorateur"
+ Jeu.explorateur = new Explorateur(
+ 5,
+ new ArrayList<>(List.of()),
+ new ArrayList<>(List.of(
+ jeu_objets.get("warpTicket"))));
+
+ // "Personnes"
+ Map jeu_personnes = Map.ofEntries(
+ entry(
+ "cashier",
+ new Personne(
+ "cashier",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ List.of(
+ new Interaction(
+ "Parler",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ List.of(),
+ List.of(),
+ List.of(),
+ List.of(
+ new Action(
+ "Acheter",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionObjet(
+ jeu_objets.get(
+ "warpTicket"),
+ "==",
+ 1)))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ List.of(),
+ List.of(
+ jeu_objets.get("warpToken"),
+ jeu_objets.get("warpReceipt")),
+ List.of(
+ jeu_objets.get("warpTicket")),
+ List.of(
+ new Description(
+ "Description1",
+ "Acheter un ticket",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ ))))))),
+ new Action(
+ "Quitter",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ List.of(),
+ List.of(),
+ List.of(),
+ List.of(
+ new Description(
+ "Description1",
+ "Quitter",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))))))))))));
+
+ // "Lieux"
+ Map territoire_lieux = Map.ofEntries(
+ entry(
+ "preWarp",
+ new Lieu(
+ "preWarp",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ List.of(
+ jeu_personnes.get("cashier")),
+ List.of(
+ new Description(
+ "Description1",
+ "preWarp description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))))),
+ new ArrayList<>(List.of()),
+ List.of())),
+ entry(
+ "postWarp",
+ new Lieu(
+ "postWarp",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ List.of(),
+ List.of(
+ new Description(
+ "Description1",
+ "postWarp description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))))),
+ new ArrayList<>(List.of()),
+ List.of())),
+ entry(
+ "END",
+ new Lieu(
+ "END",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ List.of(),
+ List.of(
+ new Description(
+ "Description1",
+ "END description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))))),
+ new ArrayList<>(List.of()),
+ List.of())));
+
+ // "Chemins"
+ Map territoire_chemins = Map.ofEntries(
+ entry(
+ "Warp",
+ new Chemin(
+ "Warp",
+ territoire_lieux.get("preWarp"),
+ territoire_lieux.get("postWarp"),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionObjet(
+ jeu_objets.get("warpToken"),
+ ">",
+ 0)))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ List.of(),
+ List.of(),
+ List.of(
+ jeu_objets.get("warpToken")),
+ List.of(
+ new Description(
+ "DescriptionToken",
+ "Warp description (need token)",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionObjet(
+ jeu_objets.get("warpToken"),
+ "==",
+ 0))))),
+ new Description(
+ "DescriptionNoToken",
+ "Warp description (token acquired)",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionObjet(
+ jeu_objets.get("warpToken"),
+ "==",
+ 1)))))))),
+ entry(
+ "EndChemin",
+ new Chemin(
+ "EndChemin",
+ territoire_lieux.get("postWarp"),
+ territoire_lieux.get("END"),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))),
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ false
+
+ )))),
+ List.of(),
+ List.of(),
+ List.of(),
+ List.of(
+ new Description(
+ "DescriptionToken",
+ "END description",
+ new Condition(
+ List.of(
+ List.of(
+ new ConditionBoolean(
+ true
+
+ )))))))));
+
+ // Territoire
+ Territoire jeu_territoire = new Territoire(territoire_lieux, territoire_chemins);
+
+ // Jeu
+ Jeu ze_GAME = new Jeu(
+ jeu_territoire,
+ jeu_objets,
+ jeu_connaissances,
+ jeu_personnes,
+ jeu_transformations);
+
+ ze_GAME.jouer();
+
+ }
}
diff --git a/workspace/fr.n7.game.toPrototype/bin/fr/n7/game/toPrototype/main/toPrototype.emtl b/workspace/fr.n7.game.toPrototype/bin/fr/n7/game/toPrototype/main/toPrototype.emtl
index c33775c..648f011 100644
--- a/workspace/fr.n7.game.toPrototype/bin/fr/n7/game/toPrototype/main/toPrototype.emtl
+++ b/workspace/fr.n7.game.toPrototype/bin/fr/n7/game/toPrototype/main/toPrototype.emtl
@@ -14,7 +14,7 @@
@@ -94,7 +94,7 @@
@@ -166,7 +166,7 @@
@@ -312,7 +312,7 @@
-
@@ -508,7 +508,7 @@
@@ -736,7 +736,7 @@
@@ -1330,7 +1330,7 @@
-
@@ -1372,7 +1372,7 @@
-
@@ -1414,7 +1414,7 @@
-
@@ -1456,7 +1456,7 @@
-
@@ -1519,7 +1519,7 @@
-
@@ -1561,7 +1561,7 @@
-
@@ -1579,48 +1579,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-