Merge branch 'master' of git.inpt.fr:tocard-inc/enseeiht/gls/projet
This commit is contained in:
commit
d9b4ef55f5
|
@ -144,6 +144,12 @@ def : getInteraction() : game!Interaction =
|
||||||
->asSequence()
|
->asSequence()
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
helper context petrinet!Transition
|
||||||
|
def : getPlace(s : String) : petrinet!Place =
|
||||||
|
petrinet!Place.allInstances()
|
||||||
|
->select(p | p.name = s)
|
||||||
|
->asSequence()
|
||||||
|
->first();
|
||||||
|
|
||||||
|
|
||||||
rule Game2PetriNet {
|
rule Game2PetriNet {
|
||||||
|
|
|
@ -12,4 +12,4 @@ tr chemin_win lieu_Enigme*1 -> lieu_Succes*1
|
||||||
tr chemin_loose lieu_Enigme*1 -> lieu_Echec*1
|
tr chemin_loose lieu_Enigme*1 -> lieu_Echec*1
|
||||||
tr interaction_Parler lieu_Enigme*1 -> personne_Sphinx*1
|
tr interaction_Parler lieu_Enigme*1 -> personne_Sphinx*1
|
||||||
tr action_Reponse_1 personne_Sphinx*1 -> lieu_Enigme*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
|
||||||
|
|
Loading…
Reference in a new issue