Merge branch 'master' of git.inpt.fr:tocard-inc/enseeiht/gls/projet

This commit is contained in:
Laurent Fainsin 2021-12-10 15:47:21 +01:00
commit d9b4ef55f5
2 changed files with 7 additions and 1 deletions

View file

@ -144,6 +144,12 @@ def : getInteraction() : game!Interaction =
->asSequence()
->first();
helper context petrinet!Transition
def : getPlace(s : String) : petrinet!Place =
petrinet!Place.allInstances()
->select(p | p.name = s)
->asSequence()
->first();
rule Game2PetriNet {

View file

@ -12,4 +12,4 @@ tr chemin_win lieu_Enigme*1 -> lieu_Succes*1
tr chemin_loose lieu_Enigme*1 -> lieu_Echec*1
tr interaction_Parler lieu_Enigme*1 -> personne_Sphinx*1
tr action_Reponse_1 personne_Sphinx*1 -> lieu_Enigme*1
tr action_Reponse_2 personne_Sphinx*0 -> lieu_Enigme*1
tr action_Reponse_2 personne_Sphinx*1 -> lieu_Enigme*1 invalid*1