feat: continuation, pas encore fini
This commit is contained in:
parent
bad72cac7f
commit
f3505ff7f3
|
@ -1,4 +1,5 @@
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class Jeu {
|
||||
public static Explorateur explorateur;
|
||||
|
@ -23,9 +24,39 @@ public class Jeu {
|
|||
|
||||
public static void main(String[] args) {
|
||||
|
||||
// raccourcis "true" "false"
|
||||
Condition faux = new Condition(new ConditionEt(new ConditionBoolean(false)));
|
||||
Condition vraie = new Condition(new ConditionEt(new ConditionBoolean(true)));
|
||||
|
||||
// "Objets": [
|
||||
|
||||
List<Objet> jeu_objets = new ArrayList<>();
|
||||
|
||||
Objet tentative_objet = new Objet(
|
||||
"tentative",
|
||||
1,
|
||||
vraie,
|
||||
new ArrayList<>());
|
||||
|
||||
jeu_objets.add(tentative_objet);
|
||||
|
||||
// "Connaissances" : [
|
||||
|
||||
List<Connaissance> jeu_connaissances = new ArrayList<>();
|
||||
|
||||
Connaissance reussite_connaissance = new Connaisssance(
|
||||
"Réussite",
|
||||
vraie,
|
||||
new ArrayList<>());
|
||||
|
||||
jeu_connaissances.add(reussite_connaissance);
|
||||
|
||||
// "Transformations" : [
|
||||
|
||||
List<Transformation> transformations = new ArrayList<>();
|
||||
|
||||
// "Explorateur" : [
|
||||
|
||||
int explorateur_tailleInventaire = 3;
|
||||
List<Objet> explorateur_inventaire = new ArrayList<>();
|
||||
List<Connaissance> explorateur_connaissances = new ArrayList<>();
|
||||
|
@ -34,12 +65,9 @@ public class Jeu {
|
|||
explorateur_inventaire,
|
||||
explorateur_connaissances);
|
||||
|
||||
List<Lieu> lieux = new ArrayList<>();
|
||||
// "Personnes" : [
|
||||
|
||||
List<Personne> debut_personnes = new ArrayList<>();
|
||||
List<Description> debut_descriptions = new ArrayList<>();
|
||||
List<Objet> debut_objets = new ArrayList<>();
|
||||
List<Connaissance> debut_connaissances = new ArrayList<>();
|
||||
List<Personne> jeu_personnes = new ArrayList<>();
|
||||
|
||||
List<Interaction> sphinx_interactions = new ArrayList<>();
|
||||
|
||||
|
@ -58,7 +86,7 @@ public class Jeu {
|
|||
vraie,
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>().add("tentative"),
|
||||
new ArrayList<>().add(tentative_objet),
|
||||
vraie);
|
||||
|
||||
sphinx_interaction_actions.add(action_echec);
|
||||
|
@ -76,7 +104,11 @@ public class Jeu {
|
|||
vraie,
|
||||
sphinx_interactions);
|
||||
|
||||
debut_personnes.add(sphinx);
|
||||
jeu_personnes.add(sphinx);
|
||||
|
||||
List<Lieu> lieux = new ArrayList<>();
|
||||
|
||||
List<Personne> debut_personnes = new ArrayList<>();
|
||||
|
||||
Lieu debut = new Lieu(
|
||||
"Départ",
|
||||
|
@ -84,17 +116,76 @@ public class Jeu {
|
|||
vraie,
|
||||
faux,
|
||||
debut_personnes,
|
||||
debut_descriptions,
|
||||
debut_objets,
|
||||
debut_connaissances);
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>());
|
||||
|
||||
lieux.add(debut);
|
||||
|
||||
Lieux succes = new Lieu(
|
||||
"Succès",
|
||||
faux,
|
||||
faux,
|
||||
vraie,
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>());
|
||||
|
||||
lieux.add(succes);
|
||||
|
||||
Lieux echec = new Lieu(
|
||||
"Échec",
|
||||
faux,
|
||||
faux,
|
||||
vraie,
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>());
|
||||
|
||||
lieux.add(echec);
|
||||
|
||||
List<Chemin> chemins = new ArrayList<>();
|
||||
|
||||
Chemin enigme_succes = new Chemin(
|
||||
debut,
|
||||
succes,
|
||||
faux,
|
||||
vraie,
|
||||
faux,
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>());
|
||||
|
||||
chemins.add(enigme_succes);
|
||||
|
||||
Chemin enigme_echec = new Chemin(
|
||||
debut,
|
||||
echec,
|
||||
faux,
|
||||
vraie,
|
||||
faux,
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>(),
|
||||
new ArrayList<>());
|
||||
|
||||
chemins.add(enigme_echec);
|
||||
|
||||
// "Territoire" : {
|
||||
|
||||
Territoire territoire = new Territoire(
|
||||
lieux,
|
||||
chemins);
|
||||
|
||||
Jeu jeu = new Jeu();
|
||||
Jeu jeu = new Jeu(
|
||||
territoire,
|
||||
jeu_objets,
|
||||
jeu_connaissances,
|
||||
personnes,
|
||||
transformations);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue