feat: renommage de "game" en "fr.n7.game"
This commit is contained in:
parent
70f299cc2f
commit
309901c04f
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>game</name>
|
||||
<name>fr.n7.game.ide</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
@ -31,15 +31,4 @@
|
|||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1638300826846</id>
|
||||
<name></name>
|
||||
<type>30</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
||||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
|
@ -1,12 +1,12 @@
|
|||
Manifest-Version: 1.0
|
||||
Automatic-Module-Name: game.ide
|
||||
Automatic-Module-Name: fr.n7.game.ide
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: game.ide
|
||||
Bundle-Name: fr.n7.game.ide
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-SymbolicName: game.ide; singleton:=true
|
||||
Bundle-SymbolicName: fr.n7.game.ide; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: game,
|
||||
Require-Bundle: fr.n7.game,
|
||||
org.eclipse.xtext.ide,
|
||||
org.eclipse.xtext.xbase.ide,
|
||||
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)"
|
|
@ -0,0 +1,201 @@
|
|||
/*
|
||||
* generated by Xtext 2.23.0
|
||||
*/
|
||||
package xtext.ide.contentassist.antlr;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.Map;
|
||||
import org.eclipse.xtext.AbstractElement;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser;
|
||||
import xtext.ide.contentassist.antlr.internal.InternalGameParser;
|
||||
import xtext.services.GameGrammarAccess;
|
||||
|
||||
public class GameParser extends AbstractContentAssistParser {
|
||||
|
||||
@Singleton
|
||||
public static final class NameMappings {
|
||||
|
||||
private final Map<AbstractElement, String> mappings;
|
||||
|
||||
@Inject
|
||||
public NameMappings(GameGrammarAccess grammarAccess) {
|
||||
ImmutableMap.Builder<AbstractElement, String> builder = ImmutableMap.builder();
|
||||
init(builder, grammarAccess);
|
||||
this.mappings = builder.build();
|
||||
}
|
||||
|
||||
public String getRuleName(AbstractElement element) {
|
||||
return mappings.get(element);
|
||||
}
|
||||
|
||||
private static void init(ImmutableMap.Builder<AbstractElement, String> builder, GameGrammarAccess grammarAccess) {
|
||||
builder.put(grammarAccess.getConditionTestAccess().getAlternatives(), "rule__ConditionTest__Alternatives");
|
||||
builder.put(grammarAccess.getComparateurAccess().getAlternatives(), "rule__Comparateur__Alternatives");
|
||||
builder.put(grammarAccess.getJeuAccess().getGroup(), "rule__Jeu__Group__0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getGroup(), "rule__Explorateur__Group__0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getGroup_8(), "rule__Explorateur__Group_8__0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getGroup_8_1(), "rule__Explorateur__Group_8_1__0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getGroup_14(), "rule__Explorateur__Group_14__0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getGroup_14_1(), "rule__Explorateur__Group_14_1__0");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getGroup(), "rule__Territoire__Group__0");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getGroup_4(), "rule__Territoire__Group_4__0");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getGroup_10(), "rule__Territoire__Group_10__0");
|
||||
builder.put(grammarAccess.getLieuAccess().getGroup(), "rule__Lieu__Group__0");
|
||||
builder.put(grammarAccess.getLieuAccess().getGroup_20(), "rule__Lieu__Group_20__0");
|
||||
builder.put(grammarAccess.getLieuAccess().getGroup_32(), "rule__Lieu__Group_32__0");
|
||||
builder.put(grammarAccess.getLieuAccess().getGroup_38(), "rule__Lieu__Group_38__0");
|
||||
builder.put(grammarAccess.getCheminAccess().getGroup(), "rule__Chemin__Group__0");
|
||||
builder.put(grammarAccess.getCheminAccess().getGroup_24(), "rule__Chemin__Group_24__0");
|
||||
builder.put(grammarAccess.getCheminAccess().getGroup_30(), "rule__Chemin__Group_30__0");
|
||||
builder.put(grammarAccess.getCheminAccess().getGroup_36(), "rule__Chemin__Group_36__0");
|
||||
builder.put(grammarAccess.getObjetAccess().getGroup(), "rule__Objet__Group__0");
|
||||
builder.put(grammarAccess.getTransformationAccess().getGroup(), "rule__Transformation__Group__0");
|
||||
builder.put(grammarAccess.getTransformationAccess().getGroup_8(), "rule__Transformation__Group_8__0");
|
||||
builder.put(grammarAccess.getTransformationAccess().getGroup_14(), "rule__Transformation__Group_14__0");
|
||||
builder.put(grammarAccess.getConnaissanceAccess().getGroup(), "rule__Connaissance__Group__0");
|
||||
builder.put(grammarAccess.getPersonneAccess().getGroup(), "rule__Personne__Group__0");
|
||||
builder.put(grammarAccess.getPersonneAccess().getGroup_16(), "rule__Personne__Group_16__0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getGroup(), "rule__Interaction__Group__0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getGroup_8(), "rule__Interaction__Group_8__0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getGroup_14(), "rule__Interaction__Group_14__0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getGroup_20(), "rule__Interaction__Group_20__0");
|
||||
builder.put(grammarAccess.getActionAccess().getGroup(), "rule__Action__Group__0");
|
||||
builder.put(grammarAccess.getActionAccess().getGroup_15(), "rule__Action__Group_15__0");
|
||||
builder.put(grammarAccess.getActionAccess().getGroup_21(), "rule__Action__Group_21__0");
|
||||
builder.put(grammarAccess.getActionAccess().getGroup_27(), "rule__Action__Group_27__0");
|
||||
builder.put(grammarAccess.getDescriptionAccess().getGroup(), "rule__Description__Group__0");
|
||||
builder.put(grammarAccess.getConditionAccess().getGroup(), "rule__Condition__Group__0");
|
||||
builder.put(grammarAccess.getConditionAccess().getGroup_2(), "rule__Condition__Group_2__0");
|
||||
builder.put(grammarAccess.getConditionEtAccess().getGroup(), "rule__ConditionEt__Group__0");
|
||||
builder.put(grammarAccess.getConditionEtAccess().getGroup_2(), "rule__ConditionEt__Group_2__0");
|
||||
builder.put(grammarAccess.getNOTConditionConnaissanceAccess().getGroup(), "rule__NOTConditionConnaissance__Group__0");
|
||||
builder.put(grammarAccess.getConditionObjetAccess().getGroup(), "rule__ConditionObjet__Group__0");
|
||||
builder.put(grammarAccess.getNomAccess().getGroup(), "rule__Nom__Group__0");
|
||||
builder.put(grammarAccess.getJeuAccess().getExplorateurAssignment_3(), "rule__Jeu__ExplorateurAssignment_3");
|
||||
builder.put(grammarAccess.getJeuAccess().getTerritoireAssignment_7(), "rule__Jeu__TerritoireAssignment_7");
|
||||
builder.put(grammarAccess.getJeuAccess().getObjetsAssignment_12(), "rule__Jeu__ObjetsAssignment_12");
|
||||
builder.put(grammarAccess.getJeuAccess().getConnaissancesAssignment_18(), "rule__Jeu__ConnaissancesAssignment_18");
|
||||
builder.put(grammarAccess.getJeuAccess().getPersonnesAssignment_24(), "rule__Jeu__PersonnesAssignment_24");
|
||||
builder.put(grammarAccess.getJeuAccess().getTransformationsAssignment_30(), "rule__Jeu__TransformationsAssignment_30");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getTailleInventaireAssignment_3(), "rule__Explorateur__TailleInventaireAssignment_3");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getConnaissancesAssignment_8_0(), "rule__Explorateur__ConnaissancesAssignment_8_0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getConnaissancesAssignment_8_1_1(), "rule__Explorateur__ConnaissancesAssignment_8_1_1");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getObjetsAssignment_14_0(), "rule__Explorateur__ObjetsAssignment_14_0");
|
||||
builder.put(grammarAccess.getExplorateurAccess().getObjetsAssignment_14_1_1(), "rule__Explorateur__ObjetsAssignment_14_1_1");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getLieuxAssignment_4_0(), "rule__Territoire__LieuxAssignment_4_0");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getLieuxAssignment_4_1(), "rule__Territoire__LieuxAssignment_4_1");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getCheminsAssignment_10_0(), "rule__Territoire__CheminsAssignment_10_0");
|
||||
builder.put(grammarAccess.getTerritoireAccess().getCheminsAssignment_10_1(), "rule__Territoire__CheminsAssignment_10_1");
|
||||
builder.put(grammarAccess.getLieuAccess().getNomAssignment_3(), "rule__Lieu__NomAssignment_3");
|
||||
builder.put(grammarAccess.getLieuAccess().getDeposableAssignment_7(), "rule__Lieu__DeposableAssignment_7");
|
||||
builder.put(grammarAccess.getLieuAccess().getDepartAssignment_11(), "rule__Lieu__DepartAssignment_11");
|
||||
builder.put(grammarAccess.getLieuAccess().getFinAssignment_15(), "rule__Lieu__FinAssignment_15");
|
||||
builder.put(grammarAccess.getLieuAccess().getPersonnesAssignment_20_0(), "rule__Lieu__PersonnesAssignment_20_0");
|
||||
builder.put(grammarAccess.getLieuAccess().getPersonnesAssignment_20_1(), "rule__Lieu__PersonnesAssignment_20_1");
|
||||
builder.put(grammarAccess.getLieuAccess().getDescriptionsAssignment_26(), "rule__Lieu__DescriptionsAssignment_26");
|
||||
builder.put(grammarAccess.getLieuAccess().getObjetsAssignment_32_0(), "rule__Lieu__ObjetsAssignment_32_0");
|
||||
builder.put(grammarAccess.getLieuAccess().getObjetsAssignment_32_1(), "rule__Lieu__ObjetsAssignment_32_1");
|
||||
builder.put(grammarAccess.getLieuAccess().getConnaissancesAssignment_38_0(), "rule__Lieu__ConnaissancesAssignment_38_0");
|
||||
builder.put(grammarAccess.getLieuAccess().getConnaissancesAssignment_38_1(), "rule__Lieu__ConnaissancesAssignment_38_1");
|
||||
builder.put(grammarAccess.getCheminAccess().getLieuInAssignment_3(), "rule__Chemin__LieuInAssignment_3");
|
||||
builder.put(grammarAccess.getCheminAccess().getLieuOutAssignment_7(), "rule__Chemin__LieuOutAssignment_7");
|
||||
builder.put(grammarAccess.getCheminAccess().getOuvertAssignment_11(), "rule__Chemin__OuvertAssignment_11");
|
||||
builder.put(grammarAccess.getCheminAccess().getVisibleAssignment_15(), "rule__Chemin__VisibleAssignment_15");
|
||||
builder.put(grammarAccess.getCheminAccess().getObligatoireAssignment_19(), "rule__Chemin__ObligatoireAssignment_19");
|
||||
builder.put(grammarAccess.getCheminAccess().getConnaissancesAssignment_24_0(), "rule__Chemin__ConnaissancesAssignment_24_0");
|
||||
builder.put(grammarAccess.getCheminAccess().getConnaissancesAssignment_24_1(), "rule__Chemin__ConnaissancesAssignment_24_1");
|
||||
builder.put(grammarAccess.getCheminAccess().getObjetsRecusAssignment_30_0(), "rule__Chemin__ObjetsRecusAssignment_30_0");
|
||||
builder.put(grammarAccess.getCheminAccess().getObjetsRecusAssignment_30_1(), "rule__Chemin__ObjetsRecusAssignment_30_1");
|
||||
builder.put(grammarAccess.getCheminAccess().getObjetsConsoAssignment_36_0(), "rule__Chemin__ObjetsConsoAssignment_36_0");
|
||||
builder.put(grammarAccess.getCheminAccess().getObjetsConsoAssignment_36_1(), "rule__Chemin__ObjetsConsoAssignment_36_1");
|
||||
builder.put(grammarAccess.getCheminAccess().getDescriptionsAssignment_42(), "rule__Chemin__DescriptionsAssignment_42");
|
||||
builder.put(grammarAccess.getObjetAccess().getNomAssignment_3(), "rule__Objet__NomAssignment_3");
|
||||
builder.put(grammarAccess.getObjetAccess().getTailleAssignment_7(), "rule__Objet__TailleAssignment_7");
|
||||
builder.put(grammarAccess.getObjetAccess().getVisibleAssignment_11(), "rule__Objet__VisibleAssignment_11");
|
||||
builder.put(grammarAccess.getObjetAccess().getDescriptionsAssignment_16(), "rule__Objet__DescriptionsAssignment_16");
|
||||
builder.put(grammarAccess.getTransformationAccess().getConditionAssignment_3(), "rule__Transformation__ConditionAssignment_3");
|
||||
builder.put(grammarAccess.getTransformationAccess().getObjetsInAssignment_8_0(), "rule__Transformation__ObjetsInAssignment_8_0");
|
||||
builder.put(grammarAccess.getTransformationAccess().getObjetsInAssignment_8_1(), "rule__Transformation__ObjetsInAssignment_8_1");
|
||||
builder.put(grammarAccess.getTransformationAccess().getObjetsOutAssignment_14_0(), "rule__Transformation__ObjetsOutAssignment_14_0");
|
||||
builder.put(grammarAccess.getTransformationAccess().getObjetsOutAssignment_14_1(), "rule__Transformation__ObjetsOutAssignment_14_1");
|
||||
builder.put(grammarAccess.getConnaissanceAccess().getNomAssignment_3(), "rule__Connaissance__NomAssignment_3");
|
||||
builder.put(grammarAccess.getConnaissanceAccess().getVisibleAssignment_7(), "rule__Connaissance__VisibleAssignment_7");
|
||||
builder.put(grammarAccess.getConnaissanceAccess().getDescriptionsAssignment_12(), "rule__Connaissance__DescriptionsAssignment_12");
|
||||
builder.put(grammarAccess.getPersonneAccess().getNomAssignment_3(), "rule__Personne__NomAssignment_3");
|
||||
builder.put(grammarAccess.getPersonneAccess().getVisibleAssignment_7(), "rule__Personne__VisibleAssignment_7");
|
||||
builder.put(grammarAccess.getPersonneAccess().getObligatoireAssignment_11(), "rule__Personne__ObligatoireAssignment_11");
|
||||
builder.put(grammarAccess.getPersonneAccess().getInteractionsAssignment_16_0(), "rule__Personne__InteractionsAssignment_16_0");
|
||||
builder.put(grammarAccess.getPersonneAccess().getInteractionsAssignment_16_1(), "rule__Personne__InteractionsAssignment_16_1");
|
||||
builder.put(grammarAccess.getInteractionAccess().getVisibleAssignment_3(), "rule__Interaction__VisibleAssignment_3");
|
||||
builder.put(grammarAccess.getInteractionAccess().getConnaissancesAssignment_8_0(), "rule__Interaction__ConnaissancesAssignment_8_0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getConnaissancesAssignment_8_1(), "rule__Interaction__ConnaissancesAssignment_8_1");
|
||||
builder.put(grammarAccess.getInteractionAccess().getObjetsRecusAssignment_14_0(), "rule__Interaction__ObjetsRecusAssignment_14_0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getObjetsRecusAssignment_14_1(), "rule__Interaction__ObjetsRecusAssignment_14_1");
|
||||
builder.put(grammarAccess.getInteractionAccess().getObjetsConsoAssignment_20_0(), "rule__Interaction__ObjetsConsoAssignment_20_0");
|
||||
builder.put(grammarAccess.getInteractionAccess().getObjetsRecusAssignment_20_1(), "rule__Interaction__ObjetsRecusAssignment_20_1");
|
||||
builder.put(grammarAccess.getInteractionAccess().getActionsAssignment_26(), "rule__Interaction__ActionsAssignment_26");
|
||||
builder.put(grammarAccess.getActionAccess().getDescriptionsAssignment_4(), "rule__Action__DescriptionsAssignment_4");
|
||||
builder.put(grammarAccess.getActionAccess().getDescriptionsAssignment_5(), "rule__Action__DescriptionsAssignment_5");
|
||||
builder.put(grammarAccess.getActionAccess().getVisibleAssignment_10(), "rule__Action__VisibleAssignment_10");
|
||||
builder.put(grammarAccess.getActionAccess().getConnaissancesAssignment_15_0(), "rule__Action__ConnaissancesAssignment_15_0");
|
||||
builder.put(grammarAccess.getActionAccess().getConnaissancesAssignment_15_1(), "rule__Action__ConnaissancesAssignment_15_1");
|
||||
builder.put(grammarAccess.getActionAccess().getObjetsRecusAssignment_21_0(), "rule__Action__ObjetsRecusAssignment_21_0");
|
||||
builder.put(grammarAccess.getActionAccess().getObjetsRecusAssignment_21_1(), "rule__Action__ObjetsRecusAssignment_21_1");
|
||||
builder.put(grammarAccess.getActionAccess().getObjetsConsoAssignment_27_0(), "rule__Action__ObjetsConsoAssignment_27_0");
|
||||
builder.put(grammarAccess.getActionAccess().getObjetsConsoAssignment_27_1(), "rule__Action__ObjetsConsoAssignment_27_1");
|
||||
builder.put(grammarAccess.getActionAccess().getFinInteractionAssignment_32(), "rule__Action__FinInteractionAssignment_32");
|
||||
builder.put(grammarAccess.getDescriptionAccess().getTexteAssignment_3(), "rule__Description__TexteAssignment_3");
|
||||
builder.put(grammarAccess.getDescriptionAccess().getConditionAssignment_7(), "rule__Description__ConditionAssignment_7");
|
||||
builder.put(grammarAccess.getConditionAccess().getConditionAssignment_1(), "rule__Condition__ConditionAssignment_1");
|
||||
builder.put(grammarAccess.getConditionAccess().getConditionAssignment_2_1(), "rule__Condition__ConditionAssignment_2_1");
|
||||
builder.put(grammarAccess.getConditionEtAccess().getConditionTestAssignment_1(), "rule__ConditionEt__ConditionTestAssignment_1");
|
||||
builder.put(grammarAccess.getConditionEtAccess().getConditionTestAssignment_2_1(), "rule__ConditionEt__ConditionTestAssignment_2_1");
|
||||
builder.put(grammarAccess.getConditionConnaissanceAccess().getConnaissanceAssignment(), "rule__ConditionConnaissance__ConnaissanceAssignment");
|
||||
builder.put(grammarAccess.getNOTConditionConnaissanceAccess().getConnaissanceAssignment_1(), "rule__NOTConditionConnaissance__ConnaissanceAssignment_1");
|
||||
builder.put(grammarAccess.getConditionObjetAccess().getObjetAssignment_0(), "rule__ConditionObjet__ObjetAssignment_0");
|
||||
builder.put(grammarAccess.getConditionObjetAccess().getComparateurAssignment_1(), "rule__ConditionObjet__ComparateurAssignment_1");
|
||||
builder.put(grammarAccess.getConditionObjetAccess().getNombreAssignment_2(), "rule__ConditionObjet__NombreAssignment_2");
|
||||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
private NameMappings nameMappings;
|
||||
|
||||
@Inject
|
||||
private GameGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected InternalGameParser createParser() {
|
||||
InternalGameParser result = new InternalGameParser(null);
|
||||
result.setGrammarAccess(grammarAccess);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRuleName(AbstractElement element) {
|
||||
return nameMappings.getRuleName(element);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getInitialHiddenTokens() {
|
||||
return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" };
|
||||
}
|
||||
|
||||
public GameGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(GameGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
|
||||
public NameMappings getNameMappings() {
|
||||
return nameMappings;
|
||||
}
|
||||
|
||||
public void setNameMappings(NameMappings nameMappings) {
|
||||
this.nameMappings = nameMappings;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,111 @@
|
|||
'!'=61
|
||||
'!='=18
|
||||
'"'=62
|
||||
'"Chemins"'=35
|
||||
'"Connaissances"'=27
|
||||
'"Description"'=54
|
||||
'"Explorateur"'=20
|
||||
'"Lieux"'=34
|
||||
'"Objets"'=24
|
||||
'"Personnes"'=28
|
||||
'"Territoire"'=23
|
||||
'"Transformations"'=29
|
||||
'"actions"'=53
|
||||
'"condition"'=49
|
||||
'"connaissances"'=32
|
||||
'"depart"'=38
|
||||
'"deposable"'=37
|
||||
'"descriptions"'=41
|
||||
'"fin"'=39
|
||||
'"fin_interaction"'=55
|
||||
'"interactions"'=52
|
||||
'"lieu_in"'=42
|
||||
'"lieu_out"'=43
|
||||
'"nom"'=36
|
||||
'"objets"'=33
|
||||
'"objets_conso"'=48
|
||||
'"objets_in"'=50
|
||||
'"objets_out"'=51
|
||||
'"objets_recus"'=47
|
||||
'"obligatoire"'=46
|
||||
'"ouvert"'=44
|
||||
'"personnes"'=40
|
||||
'"taille"'=31
|
||||
'"texte"'=56
|
||||
'"visible"'=45
|
||||
'&&'=60
|
||||
'('=57
|
||||
')'=58
|
||||
','=22
|
||||
':'=21
|
||||
'<'=13
|
||||
'<='=16
|
||||
'=='=15
|
||||
'>'=14
|
||||
'>='=17
|
||||
'['=25
|
||||
']'=26
|
||||
'false'=12
|
||||
'true'=11
|
||||
'{'=19
|
||||
'||'=59
|
||||
'}'=30
|
||||
RULE_ANY_OTHER=10
|
||||
RULE_ID=6
|
||||
RULE_INT=5
|
||||
RULE_ML_COMMENT=7
|
||||
RULE_SL_COMMENT=8
|
||||
RULE_STRING=4
|
||||
RULE_WS=9
|
||||
T__11=11
|
||||
T__12=12
|
||||
T__13=13
|
||||
T__14=14
|
||||
T__15=15
|
||||
T__16=16
|
||||
T__17=17
|
||||
T__18=18
|
||||
T__19=19
|
||||
T__20=20
|
||||
T__21=21
|
||||
T__22=22
|
||||
T__23=23
|
||||
T__24=24
|
||||
T__25=25
|
||||
T__26=26
|
||||
T__27=27
|
||||
T__28=28
|
||||
T__29=29
|
||||
T__30=30
|
||||
T__31=31
|
||||
T__32=32
|
||||
T__33=33
|
||||
T__34=34
|
||||
T__35=35
|
||||
T__36=36
|
||||
T__37=37
|
||||
T__38=38
|
||||
T__39=39
|
||||
T__40=40
|
||||
T__41=41
|
||||
T__42=42
|
||||
T__43=43
|
||||
T__44=44
|
||||
T__45=45
|
||||
T__46=46
|
||||
T__47=47
|
||||
T__48=48
|
||||
T__49=49
|
||||
T__50=50
|
||||
T__51=51
|
||||
T__52=52
|
||||
T__53=53
|
||||
T__54=54
|
||||
T__55=55
|
||||
T__56=56
|
||||
T__57=57
|
||||
T__58=58
|
||||
T__59=59
|
||||
T__60=60
|
||||
T__61=61
|
||||
T__62=62
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1
workspace/fr.n7.game.tests/.gitignore
vendored
Normal file
1
workspace/fr.n7.game.tests/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/test-bin/
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>game.ui</name>
|
||||
<name>fr.n7.game.tests</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
@ -31,15 +31,4 @@
|
|||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1638300826882</id>
|
||||
<name></name>
|
||||
<type>30</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
||||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
|
@ -1,12 +1,12 @@
|
|||
Manifest-Version: 1.0
|
||||
Automatic-Module-Name: game.tests
|
||||
Automatic-Module-Name: fr.n7.game.tests
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: game.tests
|
||||
Bundle-Name: fr.n7.game.tests
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-SymbolicName: game.tests; singleton:=true
|
||||
Bundle-SymbolicName: fr.n7.game.tests; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: game,
|
||||
Require-Bundle: fr.n7.game,
|
||||
org.junit.jupiter.api;bundle-version="[5.0.0,6.0.0)",
|
||||
org.eclipse.xtext.testing,
|
||||
org.eclipse.xtext.xbase.testing,
|
Binary file not shown.
1
workspace/fr.n7.game.tests/xtend-gen/xtext/tests/.gitignore
vendored
Normal file
1
workspace/fr.n7.game.tests/xtend-gen/xtext/tests/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/.GameParsingTest.java._trace
|
1
workspace/fr.n7.game.ui.tests/.gitignore
vendored
Normal file
1
workspace/fr.n7.game.ui.tests/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/test-bin/
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>game.ide</name>
|
||||
<name>fr.n7.game.ui.tests</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
@ -31,15 +31,4 @@
|
|||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1638300826858</id>
|
||||
<name></name>
|
||||
<type>30</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
||||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
|
@ -1,12 +1,12 @@
|
|||
Manifest-Version: 1.0
|
||||
Automatic-Module-Name: game.ui.tests
|
||||
Automatic-Module-Name: fr.n7.game.ui.tests
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: game.ui.tests
|
||||
Bundle-Name: fr.n7.game.ui.tests
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-SymbolicName: game.ui.tests; singleton:=true
|
||||
Bundle-SymbolicName: fr.n7.game.ui.tests; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: game.ui,
|
||||
Require-Bundle: fr.n7.game.ui,
|
||||
org.junit.jupiter.api;bundle-version="[5.0.0,6.0.0)",
|
||||
org.eclipse.xtext.testing,
|
||||
org.eclipse.xtext.xbase.testing,
|
|
@ -4,7 +4,7 @@
|
|||
package xtext.ui.tests;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import game.ui.internal.GameActivator;
|
||||
import fr.n7.game.ui.internal.GameActivator;
|
||||
import org.eclipse.xtext.testing.IInjectorProvider;
|
||||
|
||||
public class GameUiInjectorProvider implements IInjectorProvider {
|
1
workspace/fr.n7.game.ui/.gitignore
vendored
Normal file
1
workspace/fr.n7.game.ui/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/bin/
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>game.tests</name>
|
||||
<name>fr.n7.game.ui</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
@ -31,15 +31,4 @@
|
|||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1638300826869</id>
|
||||
<name></name>
|
||||
<type>30</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
||||
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
|
@ -1,13 +1,13 @@
|
|||
Manifest-Version: 1.0
|
||||
Automatic-Module-Name: game.ui
|
||||
Automatic-Module-Name: fr.n7.game.ui
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: game.ui
|
||||
Bundle-Name: fr.n7.game.ui
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-SymbolicName: game.ui; singleton:=true
|
||||
Bundle-SymbolicName: fr.n7.game.ui; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: game,
|
||||
game.ide,
|
||||
Require-Bundle: fr.n7.game,
|
||||
fr.n7.game.ide,
|
||||
org.eclipse.xtext.ui,
|
||||
org.eclipse.xtext.ui.shared,
|
||||
org.eclipse.xtext.ui.codetemplates.ui,
|
||||
|
@ -18,7 +18,7 @@ Require-Bundle: game,
|
|||
org.eclipse.xtext.builder
|
||||
Import-Package: org.apache.log4j
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-11
|
||||
Export-Package: xtext.ui.quickfix,
|
||||
game.ui.internal,
|
||||
Export-Package: fr.n7.game.ui.internal,
|
||||
xtext.ui.quickfix,
|
||||
xtext.ui.contentassist
|
||||
Bundle-Activator: game.ui.internal.GameActivator
|
||||
Bundle-Activator: fr.n7.game.ui.internal.GameActivator
|
|
@ -344,7 +344,7 @@
|
|||
point="org.eclipse.ui.ide.markerResolution">
|
||||
<markerResolutionGenerator
|
||||
class="xtext.ui.GameExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
|
||||
markerType="game.ui.game.check.fast">
|
||||
markerType="fr.n7.game.ui.game.check.fast">
|
||||
<attribute
|
||||
name="FIXABLE_KEY"
|
||||
value="true">
|
||||
|
@ -352,7 +352,7 @@
|
|||
</markerResolutionGenerator>
|
||||
<markerResolutionGenerator
|
||||
class="xtext.ui.GameExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
|
||||
markerType="game.ui.game.check.normal">
|
||||
markerType="fr.n7.game.ui.game.check.normal">
|
||||
<attribute
|
||||
name="FIXABLE_KEY"
|
||||
value="true">
|
||||
|
@ -360,7 +360,7 @@
|
|||
</markerResolutionGenerator>
|
||||
<markerResolutionGenerator
|
||||
class="xtext.ui.GameExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
|
||||
markerType="game.ui.game.check.expensive">
|
||||
markerType="fr.n7.game.ui.game.check.expensive">
|
||||
<attribute
|
||||
name="FIXABLE_KEY"
|
||||
value="true">
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* generated by Xtext 2.23.0
|
||||
*/
|
||||
package game.ui.internal;
|
||||
package fr.n7.game.ui.internal;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.inject.Guice;
|
||||
|
@ -22,7 +22,7 @@ import xtext.ui.GameUiModule;
|
|||
*/
|
||||
public class GameActivator extends AbstractUIPlugin {
|
||||
|
||||
public static final String PLUGIN_ID = "game.ui";
|
||||
public static final String PLUGIN_ID = "fr.n7.game.ui";
|
||||
public static final String XTEXT_GAME = "xtext.Game";
|
||||
|
||||
private static final Logger logger = Logger.getLogger(GameActivator.class);
|
|
@ -4,7 +4,7 @@
|
|||
package xtext.ui;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import game.ui.internal.GameActivator;
|
||||
import fr.n7.game.ui.internal.GameActivator;
|
||||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
|
||||
import org.osgi.framework.Bundle;
|
|
@ -5,7 +5,6 @@ package xtext.ui.contentassist;
|
|||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.xtext.Assignment;
|
||||
import org.eclipse.xtext.CrossReference;
|
||||
import org.eclipse.xtext.RuleCall;
|
||||
import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
|
||||
|
@ -36,7 +35,7 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
public void completeJeu_Transformations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeExplorateur_TailleTotaleMax(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeExplorateur_TailleInventaire(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeExplorateur_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -54,51 +53,51 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
public void completeLieu_Nom(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Personnes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Objets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Deposable(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Descriptions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Depart(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Fin(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Personnes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Descriptions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Objets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeLieu_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_LieuIn(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_LieuOut(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Objets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_ObjetsConso(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Ouvert(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Ferme(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeChemin_Visible(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Obligatoire(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_ObjetsRecus(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_ObjetsConso(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeChemin_Descriptions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
|
@ -117,10 +116,10 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
public void completeTransformation_Condition(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeTransformation_ObjetSource(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeTransformation_ObjetsIn(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeTransformation_ObjetsResultats(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeTransformation_ObjetsOut(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConnaissance_Nom(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -132,40 +131,49 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
public void completeConnaissance_Descriptions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePersonne_Nom(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePersonne_Visible(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePersonne_Obligatoire(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePersonne_Interractions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completePersonne_Interactions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInterraction_Actions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeInteraction_Visible(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInterraction_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeInteraction_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInterraction_Objets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeInteraction_ObjetsRecus(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInterraction_Visible(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeInteraction_ObjetsConso(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeInteraction_Actions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_Objets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_ObjetsConso(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeAction_Descriptions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_Visible(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_FinInterraction(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeAction_Connaissances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_ObjetsRecus(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_ObjetsConso(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAction_FinInteraction(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeDescription_Texte(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -175,18 +183,15 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeCondition_Condition(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConditionEt_ConditionTest(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConditionEt_ConditonTest(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConditionConnaissance_Connaissance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAntiConditionConnaissance_Connaissance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void completeNOTConditionConnaissance_Connaissance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConditionObjet_Objet(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -226,7 +231,7 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
public void complete_Personne(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Interraction(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void complete_Interaction(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Action(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
|
@ -247,7 +252,7 @@ public abstract class AbstractGameProposalProvider extends TerminalsProposalProv
|
|||
public void complete_ConditionConnaissance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_AntiConditionConnaissance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
public void complete_NOTConditionConnaissance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ConditionObjet(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
1
workspace/fr.n7.game/.gitignore
vendored
Normal file
1
workspace/fr.n7.game/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/bin/
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType">
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/game"/>
|
||||
<listEntry value="/fr.n7.game"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
|
@ -10,9 +10,9 @@
|
|||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <resources> <item path="/game" type="4"/> <item path="/game.ide" type="4"/> <item path="/game.ui" type="4"/> <item path="/game.tests" type="4"/> <item path="/game.ui.tests" type="4"/> <item path="/game.tests" type="4"/> <item path="/game.ui.tests" type="4"/> ;</resources>}"/>
|
||||
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <resources> <item path="/fr.n7.game" type="4"/> <item path="/fr.n7.game.ide" type="4"/> <item path="/fr.n7.game.ui" type="4"/> <item path="/fr.n7.game.tests" type="4"/> <item path="/fr.n7.game.ui.tests" type="4"/> <item path="/fr.n7.game.tests" type="4"/> <item path="/fr.n7.game.ui.tests" type="4"/> ;</resources>}"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="xtext.GenerateGame"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="game"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="fr.n7.GenerateGAME"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="fr.n7.game"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512m"/>
|
||||
</launchConfiguration>
|
|
@ -4,7 +4,7 @@
|
|||
<booleanAttribute key="askclear" value="true"/>
|
||||
<booleanAttribute key="automaticAdd" value="true"/>
|
||||
<booleanAttribute key="automaticValidate" value="false"/>
|
||||
<stringAttribute key="bad_container_name" value="/game/.launch/"/>
|
||||
<stringAttribute key="bad_container_name" value="/fr.n7.game/.launch/"/>
|
||||
<stringAttribute key="bootstrap" value=""/>
|
||||
<stringAttribute key="checked" value="[NONE]"/>
|
||||
<booleanAttribute key="clearConfig" value="true"/>
|
34
workspace/fr.n7.game/.project
Normal file
34
workspace/fr.n7.game/.project
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>fr.n7.game</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.pde.PluginNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -1,10 +1,10 @@
|
|||
Manifest-Version: 1.0
|
||||
Automatic-Module-Name: game
|
||||
Automatic-Module-Name: fr.n7.game
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: game
|
||||
Bundle-Name: fr.n7.game
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-SymbolicName: game; singleton:=true
|
||||
Bundle-SymbolicName: fr.n7.game; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: org.eclipse.xtext,
|
||||
org.eclipse.xtext.xbase,
|
1728
workspace/fr.n7.game/model/Game.aird
Normal file
1728
workspace/fr.n7.game/model/Game.aird
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="game" nsURI="http://www.Game.xtext" nsPrefix="game">
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="game" nsURI="http://game" nsPrefix="game">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Jeu">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="explorateur" eType="#//Explorateur"
|
||||
containment="true"/>
|
||||
|
@ -16,7 +16,7 @@
|
|||
eType="#//Transformation" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Explorateur">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tailleTotaleMax" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tailleInventaire" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
|
@ -30,36 +30,36 @@
|
|||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Lieu">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="personnes" upperBound="-1"
|
||||
eType="#//Personne" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="deposable" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="depart" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="fin" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="personnes" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Chemin">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lieuIn" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lieuOut" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ouvert" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ferme" eType="#//Condition"
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="obligatoire" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsRecus" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
</eClassifiers>
|
||||
|
@ -74,9 +74,9 @@
|
|||
<eClassifiers xsi:type="ecore:EClass" name="Transformation">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetSource" unique="false"
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsIn" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsResultats" unique="false"
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsOut" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Connaissance">
|
||||
|
@ -87,33 +87,38 @@
|
|||
eType="#//Description" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Personne">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nom" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="obligatoire" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="interractions" upperBound="-1"
|
||||
eType="#//Interraction" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="interactions" upperBound="-1"
|
||||
eType="#//Interaction" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Interraction">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1"
|
||||
eType="#//Action" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Interaction">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objets" unique="false"
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsRecus" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1"
|
||||
eType="#//Action" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="descriptions" upperBound="-1"
|
||||
eType="#//Description" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="visible" eType="#//Condition"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="finInterraction" eType="#//Condition"
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissances" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsRecus" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="objetsConso" unique="false"
|
||||
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="finInteraction" eType="#//Condition"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Description">
|
||||
|
@ -122,20 +127,18 @@
|
|||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Condition">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" unique="false"
|
||||
upperBound="-1" eType="#//ConditionEt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" upperBound="-1"
|
||||
eType="#//ConditionEt" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionEt">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="conditionTest" unique="false"
|
||||
upperBound="-1" eType="#//ConditionTest"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="conditonTest" unique="false"
|
||||
upperBound="-1" eType="#//ConditionTest"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="conditionTest" upperBound="-1"
|
||||
eType="#//ConditionTest" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionTest"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionConnaissance" eSuperTypes="#//ConditionTest">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AntiConditionConnaissance" eSuperTypes="#//ConditionTest">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="NOTConditionConnaissance" eSuperTypes="#//ConditionTest">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="connaissance" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConditionObjet" eSuperTypes="#//ConditionTest">
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.23.0" modelDirectory="/game/src-gen"
|
||||
modelPluginID="game" forceOverwrite="true" modelName="Game" updateClasspath="false"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.23.0" modelDirectory="/fr.n7.game/src-gen"
|
||||
modelPluginID="fr.n7.game" forceOverwrite="true" modelName="Game" updateClasspath="false"
|
||||
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" complianceLevel="8.0"
|
||||
copyrightFields="false" runtimeVersion="2.20">
|
||||
<genPackages prefix="Game" basePackage="xtext" disposableProviderFactory="true"
|
||||
|
@ -15,7 +15,7 @@
|
|||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Jeu/transformations"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Explorateur">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Explorateur/tailleTotaleMax"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Explorateur/tailleInventaire"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Explorateur/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Explorateur/objets"/>
|
||||
</genClasses>
|
||||
|
@ -25,23 +25,23 @@
|
|||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Lieu">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Lieu/nom"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Lieu/connaissances"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Lieu/personnes"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Lieu/objets"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Lieu/deposable"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Lieu/descriptions"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Lieu/depart"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Lieu/fin"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Lieu/personnes"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Lieu/descriptions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Lieu/objets"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Lieu/connaissances"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Chemin">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/lieuIn"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/lieuOut"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/objets"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Chemin/ouvert"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Chemin/ferme"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Chemin/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Chemin/obligatoire"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/objetsRecus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Chemin/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Chemin/descriptions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Objet">
|
||||
|
@ -52,8 +52,8 @@
|
|||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Transformation">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Transformation/condition"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Transformation/objetSource"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Transformation/objetsResultats"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Transformation/objetsIn"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Transformation/objetsOut"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Connaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Connaissance/nom"/>
|
||||
|
@ -61,40 +61,42 @@
|
|||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Connaissance/descriptions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Personne">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Personne/nom"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Personne/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Personne/obligatoire"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Personne/interractions"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Personne/interactions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Interraction">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Interraction/actions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Interraction/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Interraction/objets"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Interraction/visible"/>
|
||||
<genClasses ecoreClass="Game.ecore#//Interaction">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Interaction/visible"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Interaction/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Interaction/objetsRecus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Interaction/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Interaction/actions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Action">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Action/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Action/objets"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Action/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Action/descriptions"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Action/visible"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Action/finInterraction"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Action/connaissances"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Action/objetsRecus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Action/objetsConso"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Action/finInteraction"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Description">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//Description/texte"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Description/condition"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//Condition">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Game.ecore#//Condition/condition"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//Condition/condition"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//ConditionEt">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Game.ecore#//ConditionEt/conditionTest"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference Game.ecore#//ConditionEt/conditonTest"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference Game.ecore#//ConditionEt/conditionTest"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//ConditionTest"/>
|
||||
<genClasses ecoreClass="Game.ecore#//ConditionConnaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//ConditionConnaissance/connaissance"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//AntiConditionConnaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//AntiConditionConnaissance/connaissance"/>
|
||||
<genClasses ecoreClass="Game.ecore#//NOTConditionConnaissance">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//NOTConditionConnaissance/connaissance"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="Game.ecore#//ConditionObjet">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute Game.ecore#//ConditionObjet/objet"/>
|
|
@ -3,7 +3,7 @@
|
|||
<plugin>
|
||||
<extension point="org.eclipse.emf.ecore.generated_package">
|
||||
<package
|
||||
uri = "http://www.Game.xtext"
|
||||
uri = "http://game"
|
||||
class = "xtext.game.GamePackage"
|
||||
genModel = "model/generated/Game.genmodel" />
|
||||
</extension>
|
BIN
workspace/fr.n7.game/src-gen/xtext/Game.xtextbin
Normal file
BIN
workspace/fr.n7.game/src-gen/xtext/Game.xtextbin
Normal file
Binary file not shown.
|
@ -30,8 +30,8 @@ public class GameStandaloneSetupGenerated implements ISetup {
|
|||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.Game.xtext")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.Game.xtext", GamePackage.eINSTANCE);
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://game")) {
|
||||
EPackage.Registry.INSTANCE.put("http://game", GamePackage.eINSTANCE);
|
||||
}
|
||||
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
|
||||
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
|
|
@ -16,11 +16,12 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.Action#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getDescriptions <em>Descriptions</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getFinInterraction <em>Fin Interraction</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getObjetsRecus <em>Objets Recus</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.Action#getFinInteraction <em>Fin Interaction</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getAction()
|
||||
|
@ -30,40 +31,16 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Action extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Description}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getAction_Connaissances()
|
||||
* @model unique="false"
|
||||
* @return the value of the '<em>Descriptions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getAction_Descriptions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getAction_Objets()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getAction_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
EList<Description> getDescriptions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Visible</b></em>' containment reference.
|
||||
|
@ -88,25 +65,61 @@ public interface Action extends EObject
|
|||
void setVisible(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Fin Interraction</b></em>' containment reference.
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Fin Interraction</em>' containment reference.
|
||||
* @see #setFinInterraction(Condition)
|
||||
* @see xtext.game.GamePackage#getAction_FinInterraction()
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getAction_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Recus</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getAction_ObjetsRecus()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsRecus();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getAction_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Fin Interaction</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Fin Interaction</em>' containment reference.
|
||||
* @see #setFinInteraction(Condition)
|
||||
* @see xtext.game.GamePackage#getAction_FinInteraction()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
Condition getFinInterraction();
|
||||
Condition getFinInteraction();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link xtext.game.Action#getFinInterraction <em>Fin Interraction</em>}' containment reference.
|
||||
* Sets the value of the '{@link xtext.game.Action#getFinInteraction <em>Fin Interaction</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Fin Interraction</em>' containment reference.
|
||||
* @see #getFinInterraction()
|
||||
* @param value the new value of the '<em>Fin Interaction</em>' containment reference.
|
||||
* @see #getFinInteraction()
|
||||
* @generated
|
||||
*/
|
||||
void setFinInterraction(Condition value);
|
||||
void setFinInteraction(Condition value);
|
||||
|
||||
} // Action
|
|
@ -18,12 +18,12 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* <ul>
|
||||
* <li>{@link xtext.game.Chemin#getLieuIn <em>Lieu In</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getLieuOut <em>Lieu Out</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getOuvert <em>Ouvert</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getFerme <em>Ferme</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getObligatoire <em>Obligatoire</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getObjetsRecus <em>Objets Recus</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.Chemin#getDescriptions <em>Descriptions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
|
@ -77,42 +77,6 @@ public interface Chemin extends EObject
|
|||
*/
|
||||
void setLieuOut(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getChemin_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getChemin_Objets()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getChemin_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Ouvert</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -136,26 +100,26 @@ public interface Chemin extends EObject
|
|||
void setOuvert(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Ferme</b></em>' containment reference.
|
||||
* Returns the value of the '<em><b>Visible</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Ferme</em>' containment reference.
|
||||
* @see #setFerme(Condition)
|
||||
* @see xtext.game.GamePackage#getChemin_Ferme()
|
||||
* @return the value of the '<em>Visible</em>' containment reference.
|
||||
* @see #setVisible(Condition)
|
||||
* @see xtext.game.GamePackage#getChemin_Visible()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
Condition getFerme();
|
||||
Condition getVisible();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link xtext.game.Chemin#getFerme <em>Ferme</em>}' containment reference.
|
||||
* Sets the value of the '{@link xtext.game.Chemin#getVisible <em>Visible</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Ferme</em>' containment reference.
|
||||
* @see #getFerme()
|
||||
* @param value the new value of the '<em>Visible</em>' containment reference.
|
||||
* @see #getVisible()
|
||||
* @generated
|
||||
*/
|
||||
void setFerme(Condition value);
|
||||
void setVisible(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Obligatoire</b></em>' containment reference.
|
||||
|
@ -179,6 +143,42 @@ public interface Chemin extends EObject
|
|||
*/
|
||||
void setObligatoire(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getChemin_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Recus</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getChemin_ObjetsRecus()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsRecus();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getChemin_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Description}.
|
|
@ -26,13 +26,13 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Condition extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Condition</b></em>' reference list.
|
||||
* Returns the value of the '<em><b>Condition</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.ConditionEt}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Condition</em>' reference list.
|
||||
* @return the value of the '<em>Condition</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getCondition_Condition()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<ConditionEt> getCondition();
|
|
@ -17,7 +17,6 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.ConditionEt#getConditionTest <em>Condition Test</em>}</li>
|
||||
* <li>{@link xtext.game.ConditionEt#getConditonTest <em>Conditon Test</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getConditionEt()
|
||||
|
@ -27,27 +26,15 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface ConditionEt extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Condition Test</b></em>' reference list.
|
||||
* Returns the value of the '<em><b>Condition Test</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.ConditionTest}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Condition Test</em>' reference list.
|
||||
* @return the value of the '<em>Condition Test</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getConditionEt_ConditionTest()
|
||||
* @model
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<ConditionTest> getConditionTest();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Conditon Test</b></em>' reference list.
|
||||
* The list contents are of type {@link xtext.game.ConditionTest}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Conditon Test</em>' reference list.
|
||||
* @see xtext.game.GamePackage#getConditionEt_ConditonTest()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EList<ConditionTest> getConditonTest();
|
||||
|
||||
} // ConditionEt
|
|
@ -16,7 +16,7 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.Explorateur#getTailleTotaleMax <em>Taille Totale Max</em>}</li>
|
||||
* <li>{@link xtext.game.Explorateur#getTailleInventaire <em>Taille Inventaire</em>}</li>
|
||||
* <li>{@link xtext.game.Explorateur#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Explorateur#getObjets <em>Objets</em>}</li>
|
||||
* </ul>
|
||||
|
@ -28,26 +28,26 @@ import org.eclipse.emf.ecore.EObject;
|
|||
public interface Explorateur extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Taille Totale Max</b></em>' attribute.
|
||||
* Returns the value of the '<em><b>Taille Inventaire</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Taille Totale Max</em>' attribute.
|
||||
* @see #setTailleTotaleMax(int)
|
||||
* @see xtext.game.GamePackage#getExplorateur_TailleTotaleMax()
|
||||
* @return the value of the '<em>Taille Inventaire</em>' attribute.
|
||||
* @see #setTailleInventaire(int)
|
||||
* @see xtext.game.GamePackage#getExplorateur_TailleInventaire()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
int getTailleTotaleMax();
|
||||
int getTailleInventaire();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link xtext.game.Explorateur#getTailleTotaleMax <em>Taille Totale Max</em>}' attribute.
|
||||
* Sets the value of the '{@link xtext.game.Explorateur#getTailleInventaire <em>Taille Inventaire</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Taille Totale Max</em>' attribute.
|
||||
* @see #getTailleTotaleMax()
|
||||
* @param value the new value of the '<em>Taille Inventaire</em>' attribute.
|
||||
* @see #getTailleInventaire()
|
||||
* @generated
|
||||
*/
|
||||
void setTailleTotaleMax(int value);
|
||||
void setTailleInventaire(int value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
|
@ -105,13 +105,13 @@ public interface GameFactory extends EFactory
|
|||
Personne createPersonne();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Interraction</em>'.
|
||||
* Returns a new object of class '<em>Interaction</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Interraction</em>'.
|
||||
* @return a new object of class '<em>Interaction</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Interraction createInterraction();
|
||||
Interaction createInteraction();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Action</em>'.
|
||||
|
@ -168,13 +168,13 @@ public interface GameFactory extends EFactory
|
|||
ConditionConnaissance createConditionConnaissance();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Anti Condition Connaissance</em>'.
|
||||
* Returns a new object of class '<em>NOT Condition Connaissance</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Anti Condition Connaissance</em>'.
|
||||
* @return a new object of class '<em>NOT Condition Connaissance</em>'.
|
||||
* @generated
|
||||
*/
|
||||
AntiConditionConnaissance createAntiConditionConnaissance();
|
||||
NOTConditionConnaissance createNOTConditionConnaissance();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Condition Objet</em>'.
|
File diff suppressed because it is too large
Load diff
|
@ -9,75 +9,40 @@ import org.eclipse.emf.ecore.EObject;
|
|||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Interraction</b></em>'.
|
||||
* A representation of the model object '<em><b>Interaction</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.Interraction#getActions <em>Actions</em>}</li>
|
||||
* <li>{@link xtext.game.Interraction#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Interraction#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.Interraction#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.Interaction#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.Interaction#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Interaction#getObjetsRecus <em>Objets Recus</em>}</li>
|
||||
* <li>{@link xtext.game.Interaction#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.Interaction#getActions <em>Actions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getInterraction()
|
||||
* @see xtext.game.GamePackage#getInteraction()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Interraction extends EObject
|
||||
public interface Interaction extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Actions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Action}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Actions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getInterraction_Actions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Action> getActions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getInterraction_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getInterraction_Objets()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Visible</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Visible</em>' containment reference.
|
||||
* @see #setVisible(Condition)
|
||||
* @see xtext.game.GamePackage#getInterraction_Visible()
|
||||
* @see xtext.game.GamePackage#getInteraction_Visible()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
Condition getVisible();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link xtext.game.Interraction#getVisible <em>Visible</em>}' containment reference.
|
||||
* Sets the value of the '{@link xtext.game.Interaction#getVisible <em>Visible</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Visible</em>' containment reference.
|
||||
|
@ -86,4 +51,52 @@ public interface Interraction extends EObject
|
|||
*/
|
||||
void setVisible(Condition value);
|
||||
|
||||
} // Interraction
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getInteraction_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Recus</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Recus</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getInteraction_ObjetsRecus()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsRecus();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Conso</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Conso</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getInteraction_ObjetsConso()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsConso();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Actions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Action}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Actions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getInteraction_Actions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Action> getActions();
|
||||
|
||||
} // Interaction
|
|
@ -17,13 +17,13 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.Lieu#getNom <em>Nom</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getPersonnes <em>Personnes</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getDeposable <em>Deposable</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getDescriptions <em>Descriptions</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getDepart <em>Depart</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getFin <em>Fin</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getPersonnes <em>Personnes</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getDescriptions <em>Descriptions</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.Lieu#getConnaissances <em>Connaissances</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getLieu()
|
||||
|
@ -54,42 +54,6 @@ public interface Lieu extends EObject
|
|||
*/
|
||||
void setNom(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getLieu_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Personnes</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Personne}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Personnes</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getLieu_Personnes()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Personne> getPersonnes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getLieu_Objets()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Deposable</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -112,18 +76,6 @@ public interface Lieu extends EObject
|
|||
*/
|
||||
void setDeposable(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Description}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Descriptions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getLieu_Descriptions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Description> getDescriptions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Depart</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -168,4 +120,52 @@ public interface Lieu extends EObject
|
|||
*/
|
||||
void setFin(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Personnes</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Personnes</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getLieu_Personnes()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getPersonnes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Descriptions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Description}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Descriptions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getLieu_Descriptions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Description> getDescriptions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getLieu_Objets()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjets();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissances</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissances</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getLieu_Connaissances()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getConnaissances();
|
||||
|
||||
} // Lieu
|
|
@ -6,21 +6,21 @@ package xtext.game;
|
|||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Anti Condition Connaissance</b></em>'.
|
||||
* A representation of the model object '<em><b>NOT Condition Connaissance</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.AntiConditionConnaissance#getConnaissance <em>Connaissance</em>}</li>
|
||||
* <li>{@link xtext.game.NOTConditionConnaissance#getConnaissance <em>Connaissance</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getAntiConditionConnaissance()
|
||||
* @see xtext.game.GamePackage#getNOTConditionConnaissance()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface AntiConditionConnaissance extends ConditionTest
|
||||
public interface NOTConditionConnaissance extends ConditionTest
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Connaissance</b></em>' attribute.
|
||||
|
@ -28,14 +28,14 @@ public interface AntiConditionConnaissance extends ConditionTest
|
|||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Connaissance</em>' attribute.
|
||||
* @see #setConnaissance(String)
|
||||
* @see xtext.game.GamePackage#getAntiConditionConnaissance_Connaissance()
|
||||
* @see xtext.game.GamePackage#getNOTConditionConnaissance_Connaissance()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getConnaissance();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link xtext.game.AntiConditionConnaissance#getConnaissance <em>Connaissance</em>}' attribute.
|
||||
* Sets the value of the '{@link xtext.game.NOTConditionConnaissance#getConnaissance <em>Connaissance</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Connaissance</em>' attribute.
|
||||
|
@ -44,4 +44,4 @@ public interface AntiConditionConnaissance extends ConditionTest
|
|||
*/
|
||||
void setConnaissance(String value);
|
||||
|
||||
} // AntiConditionConnaissance
|
||||
} // NOTConditionConnaissance
|
|
@ -16,9 +16,10 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.Personne#getNom <em>Nom</em>}</li>
|
||||
* <li>{@link xtext.game.Personne#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.Personne#getObligatoire <em>Obligatoire</em>}</li>
|
||||
* <li>{@link xtext.game.Personne#getInterractions <em>Interractions</em>}</li>
|
||||
* <li>{@link xtext.game.Personne#getInteractions <em>Interactions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getPersonne()
|
||||
|
@ -27,6 +28,28 @@ import org.eclipse.emf.ecore.EObject;
|
|||
*/
|
||||
public interface Personne extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nom</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nom</em>' attribute.
|
||||
* @see #setNom(String)
|
||||
* @see xtext.game.GamePackage#getPersonne_Nom()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getNom();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link xtext.game.Personne#getNom <em>Nom</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Nom</em>' attribute.
|
||||
* @see #getNom()
|
||||
* @generated
|
||||
*/
|
||||
void setNom(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Visible</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -72,15 +95,15 @@ public interface Personne extends EObject
|
|||
void setObligatoire(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Interractions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Interraction}.
|
||||
* Returns the value of the '<em><b>Interactions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link xtext.game.Interaction}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Interractions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getPersonne_Interractions()
|
||||
* @return the value of the '<em>Interactions</em>' containment reference list.
|
||||
* @see xtext.game.GamePackage#getPersonne_Interactions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Interraction> getInterractions();
|
||||
EList<Interaction> getInteractions();
|
||||
|
||||
} // Personne
|
|
@ -17,8 +17,8 @@ import org.eclipse.emf.ecore.EObject;
|
|||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.Transformation#getCondition <em>Condition</em>}</li>
|
||||
* <li>{@link xtext.game.Transformation#getObjetSource <em>Objet Source</em>}</li>
|
||||
* <li>{@link xtext.game.Transformation#getObjetsResultats <em>Objets Resultats</em>}</li>
|
||||
* <li>{@link xtext.game.Transformation#getObjetsIn <em>Objets In</em>}</li>
|
||||
* <li>{@link xtext.game.Transformation#getObjetsOut <em>Objets Out</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see xtext.game.GamePackage#getTransformation()
|
||||
|
@ -50,27 +50,27 @@ public interface Transformation extends EObject
|
|||
void setCondition(Condition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objet Source</b></em>' attribute list.
|
||||
* Returns the value of the '<em><b>Objets In</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objet Source</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getTransformation_ObjetSource()
|
||||
* @return the value of the '<em>Objets In</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getTransformation_ObjetsIn()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetSource();
|
||||
EList<String> getObjetsIn();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objets Resultats</b></em>' attribute list.
|
||||
* Returns the value of the '<em><b>Objets Out</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objets Resultats</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getTransformation_ObjetsResultats()
|
||||
* @return the value of the '<em>Objets Out</em>' attribute list.
|
||||
* @see xtext.game.GamePackage#getTransformation_ObjetsOut()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getObjetsResultats();
|
||||
EList<String> getObjetsOut();
|
||||
|
||||
} // Transformation
|
|
@ -17,9 +17,12 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
|||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import xtext.game.Action;
|
||||
import xtext.game.Condition;
|
||||
import xtext.game.Description;
|
||||
import xtext.game.GamePackage;
|
||||
|
||||
/**
|
||||
|
@ -30,11 +33,12 @@ import xtext.game.GamePackage;
|
|||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getDescriptions <em>Descriptions</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getFinInterraction <em>Fin Interraction</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getObjetsRecus <em>Objets Recus</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ActionImpl#getFinInteraction <em>Fin Interaction</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
|
@ -42,34 +46,14 @@ import xtext.game.GamePackage;
|
|||
public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @see #getDescriptions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjets() <em>Objets</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjets()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objets;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
protected EList<Description> descriptions;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getVisible() <em>Visible</em>}' containment reference.
|
||||
|
@ -82,14 +66,44 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
protected Condition visible;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getFinInterraction() <em>Fin Interraction</em>}' containment reference.
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getFinInterraction()
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Condition finInterraction;
|
||||
protected EList<String> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsRecus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsRecus;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getFinInteraction() <em>Fin Interaction</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getFinInteraction()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Condition finInteraction;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -118,43 +132,13 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
public EList<Description> getDescriptions()
|
||||
{
|
||||
if (connaissances == null)
|
||||
if (descriptions == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__CONNAISSANCES);
|
||||
descriptions = new EObjectContainmentEList<Description>(Description.class, this, GamePackage.ACTION__DESCRIPTIONS);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjets()
|
||||
{
|
||||
if (objets == null)
|
||||
{
|
||||
objets = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__OBJETS);
|
||||
}
|
||||
return objets;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
return descriptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -213,9 +197,13 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Condition getFinInterraction()
|
||||
public EList<String> getConnaissances()
|
||||
{
|
||||
return finInterraction;
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -223,13 +211,54 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetFinInterraction(Condition newFinInterraction, NotificationChain msgs)
|
||||
@Override
|
||||
public EList<String> getObjetsRecus()
|
||||
{
|
||||
Condition oldFinInterraction = finInterraction;
|
||||
finInterraction = newFinInterraction;
|
||||
if (objetsRecus == null)
|
||||
{
|
||||
objetsRecus = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__OBJETS_RECUS);
|
||||
}
|
||||
return objetsRecus;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Condition getFinInteraction()
|
||||
{
|
||||
return finInteraction;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetFinInteraction(Condition newFinInteraction, NotificationChain msgs)
|
||||
{
|
||||
Condition oldFinInteraction = finInteraction;
|
||||
finInteraction = newFinInteraction;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__FIN_INTERRACTION, oldFinInterraction, newFinInterraction);
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__FIN_INTERACTION, oldFinInteraction, newFinInteraction);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
|
@ -241,20 +270,20 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setFinInterraction(Condition newFinInterraction)
|
||||
public void setFinInteraction(Condition newFinInteraction)
|
||||
{
|
||||
if (newFinInterraction != finInterraction)
|
||||
if (newFinInteraction != finInteraction)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (finInterraction != null)
|
||||
msgs = ((InternalEObject)finInterraction).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.ACTION__FIN_INTERRACTION, null, msgs);
|
||||
if (newFinInterraction != null)
|
||||
msgs = ((InternalEObject)newFinInterraction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.ACTION__FIN_INTERRACTION, null, msgs);
|
||||
msgs = basicSetFinInterraction(newFinInterraction, msgs);
|
||||
if (finInteraction != null)
|
||||
msgs = ((InternalEObject)finInteraction).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.ACTION__FIN_INTERACTION, null, msgs);
|
||||
if (newFinInteraction != null)
|
||||
msgs = ((InternalEObject)newFinInteraction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.ACTION__FIN_INTERACTION, null, msgs);
|
||||
msgs = basicSetFinInteraction(newFinInteraction, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__FIN_INTERRACTION, newFinInterraction, newFinInterraction));
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__FIN_INTERACTION, newFinInteraction, newFinInteraction));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -267,10 +296,12 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GamePackage.ACTION__DESCRIPTIONS:
|
||||
return ((InternalEList<?>)getDescriptions()).basicRemove(otherEnd, msgs);
|
||||
case GamePackage.ACTION__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GamePackage.ACTION__FIN_INTERRACTION:
|
||||
return basicSetFinInterraction(null, msgs);
|
||||
case GamePackage.ACTION__FIN_INTERACTION:
|
||||
return basicSetFinInteraction(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
@ -285,16 +316,18 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
return getConnaissances();
|
||||
case GamePackage.ACTION__OBJETS:
|
||||
return getObjets();
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
return getObjetsConso();
|
||||
case GamePackage.ACTION__DESCRIPTIONS:
|
||||
return getDescriptions();
|
||||
case GamePackage.ACTION__VISIBLE:
|
||||
return getVisible();
|
||||
case GamePackage.ACTION__FIN_INTERRACTION:
|
||||
return getFinInterraction();
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
return getConnaissances();
|
||||
case GamePackage.ACTION__OBJETS_RECUS:
|
||||
return getObjetsRecus();
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
return getObjetsConso();
|
||||
case GamePackage.ACTION__FIN_INTERACTION:
|
||||
return getFinInteraction();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
@ -310,23 +343,27 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GamePackage.ACTION__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
getDescriptions().addAll((Collection<? extends Description>)newValue);
|
||||
return;
|
||||
case GamePackage.ACTION__VISIBLE:
|
||||
setVisible((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case GamePackage.ACTION__OBJETS:
|
||||
getObjets().clear();
|
||||
getObjets().addAll((Collection<? extends String>)newValue);
|
||||
case GamePackage.ACTION__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
getObjetsRecus().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
getObjetsConso().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case GamePackage.ACTION__VISIBLE:
|
||||
setVisible((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.ACTION__FIN_INTERRACTION:
|
||||
setFinInterraction((Condition)newValue);
|
||||
case GamePackage.ACTION__FIN_INTERACTION:
|
||||
setFinInteraction((Condition)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
|
@ -342,20 +379,23 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
return;
|
||||
case GamePackage.ACTION__OBJETS:
|
||||
getObjets().clear();
|
||||
return;
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
case GamePackage.ACTION__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
return;
|
||||
case GamePackage.ACTION__VISIBLE:
|
||||
setVisible((Condition)null);
|
||||
return;
|
||||
case GamePackage.ACTION__FIN_INTERRACTION:
|
||||
setFinInterraction((Condition)null);
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
return;
|
||||
case GamePackage.ACTION__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
return;
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
return;
|
||||
case GamePackage.ACTION__FIN_INTERACTION:
|
||||
setFinInteraction((Condition)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
|
@ -371,16 +411,18 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
return connaissances != null && !connaissances.isEmpty();
|
||||
case GamePackage.ACTION__OBJETS:
|
||||
return objets != null && !objets.isEmpty();
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
return objetsConso != null && !objetsConso.isEmpty();
|
||||
case GamePackage.ACTION__DESCRIPTIONS:
|
||||
return descriptions != null && !descriptions.isEmpty();
|
||||
case GamePackage.ACTION__VISIBLE:
|
||||
return visible != null;
|
||||
case GamePackage.ACTION__FIN_INTERRACTION:
|
||||
return finInterraction != null;
|
||||
case GamePackage.ACTION__CONNAISSANCES:
|
||||
return connaissances != null && !connaissances.isEmpty();
|
||||
case GamePackage.ACTION__OBJETS_RECUS:
|
||||
return objetsRecus != null && !objetsRecus.isEmpty();
|
||||
case GamePackage.ACTION__OBJETS_CONSO:
|
||||
return objetsConso != null && !objetsConso.isEmpty();
|
||||
case GamePackage.ACTION__FIN_INTERACTION:
|
||||
return finInteraction != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
@ -398,8 +440,8 @@ public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(", objets: ");
|
||||
result.append(objets);
|
||||
result.append(", objetsRecus: ");
|
||||
result.append(objetsRecus);
|
||||
result.append(", objetsConso: ");
|
||||
result.append(objetsConso);
|
||||
result.append(')');
|
|
@ -35,12 +35,12 @@ import xtext.game.GamePackage;
|
|||
* <ul>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getLieuIn <em>Lieu In</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getLieuOut <em>Lieu Out</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getObjets <em>Objets</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getOuvert <em>Ouvert</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getFerme <em>Ferme</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getVisible <em>Visible</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getObligatoire <em>Obligatoire</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getConnaissances <em>Connaissances</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getObjetsRecus <em>Objets Recus</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getObjetsConso <em>Objets Conso</em>}</li>
|
||||
* <li>{@link xtext.game.impl.CheminImpl#getDescriptions <em>Descriptions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
|
@ -88,36 +88,6 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
*/
|
||||
protected String lieuOut = LIEU_OUT_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjets() <em>Objets</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjets()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objets;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getOuvert() <em>Ouvert</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -129,14 +99,14 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
protected Condition ouvert;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getFerme() <em>Ferme</em>}' containment reference.
|
||||
* The cached value of the '{@link #getVisible() <em>Visible</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getFerme()
|
||||
* @see #getVisible()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Condition ferme;
|
||||
protected Condition visible;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObligatoire() <em>Obligatoire</em>}' containment reference.
|
||||
|
@ -148,6 +118,36 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
*/
|
||||
protected Condition obligatoire;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConnaissances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> connaissances;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsRecus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsRecus;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjetsConso()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> objetsConso;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
|
@ -229,51 +229,6 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.CHEMIN__LIEU_OUT, oldLieuOut, lieuOut));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GamePackage.CHEMIN__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjets()
|
||||
{
|
||||
if (objets == null)
|
||||
{
|
||||
objets = new EDataTypeEList<String>(String.class, this, GamePackage.CHEMIN__OBJETS);
|
||||
}
|
||||
return objets;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GamePackage.CHEMIN__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -330,9 +285,9 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Condition getFerme()
|
||||
public Condition getVisible()
|
||||
{
|
||||
return ferme;
|
||||
return visible;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -340,13 +295,13 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetFerme(Condition newFerme, NotificationChain msgs)
|
||||
public NotificationChain basicSetVisible(Condition newVisible, NotificationChain msgs)
|
||||
{
|
||||
Condition oldFerme = ferme;
|
||||
ferme = newFerme;
|
||||
Condition oldVisible = visible;
|
||||
visible = newVisible;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.CHEMIN__FERME, oldFerme, newFerme);
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.CHEMIN__VISIBLE, oldVisible, newVisible);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
|
@ -358,20 +313,20 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setFerme(Condition newFerme)
|
||||
public void setVisible(Condition newVisible)
|
||||
{
|
||||
if (newFerme != ferme)
|
||||
if (newVisible != visible)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (ferme != null)
|
||||
msgs = ((InternalEObject)ferme).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.CHEMIN__FERME, null, msgs);
|
||||
if (newFerme != null)
|
||||
msgs = ((InternalEObject)newFerme).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.CHEMIN__FERME, null, msgs);
|
||||
msgs = basicSetFerme(newFerme, msgs);
|
||||
if (visible != null)
|
||||
msgs = ((InternalEObject)visible).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.CHEMIN__VISIBLE, null, msgs);
|
||||
if (newVisible != null)
|
||||
msgs = ((InternalEObject)newVisible).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.CHEMIN__VISIBLE, null, msgs);
|
||||
msgs = basicSetVisible(newVisible, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.CHEMIN__FERME, newFerme, newFerme));
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.CHEMIN__VISIBLE, newVisible, newVisible));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -424,6 +379,51 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.CHEMIN__OBLIGATOIRE, newObligatoire, newObligatoire));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getConnaissances()
|
||||
{
|
||||
if (connaissances == null)
|
||||
{
|
||||
connaissances = new EDataTypeEList<String>(String.class, this, GamePackage.CHEMIN__CONNAISSANCES);
|
||||
}
|
||||
return connaissances;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsRecus()
|
||||
{
|
||||
if (objetsRecus == null)
|
||||
{
|
||||
objetsRecus = new EDataTypeEList<String>(String.class, this, GamePackage.CHEMIN__OBJETS_RECUS);
|
||||
}
|
||||
return objetsRecus;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<String> getObjetsConso()
|
||||
{
|
||||
if (objetsConso == null)
|
||||
{
|
||||
objetsConso = new EDataTypeEList<String>(String.class, this, GamePackage.CHEMIN__OBJETS_CONSO);
|
||||
}
|
||||
return objetsConso;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -451,8 +451,8 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
{
|
||||
case GamePackage.CHEMIN__OUVERT:
|
||||
return basicSetOuvert(null, msgs);
|
||||
case GamePackage.CHEMIN__FERME:
|
||||
return basicSetFerme(null, msgs);
|
||||
case GamePackage.CHEMIN__VISIBLE:
|
||||
return basicSetVisible(null, msgs);
|
||||
case GamePackage.CHEMIN__OBLIGATOIRE:
|
||||
return basicSetObligatoire(null, msgs);
|
||||
case GamePackage.CHEMIN__DESCRIPTIONS:
|
||||
|
@ -475,18 +475,18 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
return getLieuIn();
|
||||
case GamePackage.CHEMIN__LIEU_OUT:
|
||||
return getLieuOut();
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
return getConnaissances();
|
||||
case GamePackage.CHEMIN__OBJETS:
|
||||
return getObjets();
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
return getObjetsConso();
|
||||
case GamePackage.CHEMIN__OUVERT:
|
||||
return getOuvert();
|
||||
case GamePackage.CHEMIN__FERME:
|
||||
return getFerme();
|
||||
case GamePackage.CHEMIN__VISIBLE:
|
||||
return getVisible();
|
||||
case GamePackage.CHEMIN__OBLIGATOIRE:
|
||||
return getObligatoire();
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
return getConnaissances();
|
||||
case GamePackage.CHEMIN__OBJETS_RECUS:
|
||||
return getObjetsRecus();
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
return getObjetsConso();
|
||||
case GamePackage.CHEMIN__DESCRIPTIONS:
|
||||
return getDescriptions();
|
||||
}
|
||||
|
@ -510,27 +510,27 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
case GamePackage.CHEMIN__LIEU_OUT:
|
||||
setLieuOut((String)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OUVERT:
|
||||
setOuvert((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__VISIBLE:
|
||||
setVisible((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBLIGATOIRE:
|
||||
setObligatoire((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
getConnaissances().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBJETS:
|
||||
getObjets().clear();
|
||||
getObjets().addAll((Collection<? extends String>)newValue);
|
||||
case GamePackage.CHEMIN__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
getObjetsRecus().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
getObjetsConso().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OUVERT:
|
||||
setOuvert((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__FERME:
|
||||
setFerme((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBLIGATOIRE:
|
||||
setObligatoire((Condition)newValue);
|
||||
return;
|
||||
case GamePackage.CHEMIN__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
getDescriptions().addAll((Collection<? extends Description>)newValue);
|
||||
|
@ -555,24 +555,24 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
case GamePackage.CHEMIN__LIEU_OUT:
|
||||
setLieuOut(LIEU_OUT_EDEFAULT);
|
||||
return;
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBJETS:
|
||||
getObjets().clear();
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
return;
|
||||
case GamePackage.CHEMIN__OUVERT:
|
||||
setOuvert((Condition)null);
|
||||
return;
|
||||
case GamePackage.CHEMIN__FERME:
|
||||
setFerme((Condition)null);
|
||||
case GamePackage.CHEMIN__VISIBLE:
|
||||
setVisible((Condition)null);
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBLIGATOIRE:
|
||||
setObligatoire((Condition)null);
|
||||
return;
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
getConnaissances().clear();
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBJETS_RECUS:
|
||||
getObjetsRecus().clear();
|
||||
return;
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
getObjetsConso().clear();
|
||||
return;
|
||||
case GamePackage.CHEMIN__DESCRIPTIONS:
|
||||
getDescriptions().clear();
|
||||
return;
|
||||
|
@ -594,18 +594,18 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
return LIEU_IN_EDEFAULT == null ? lieuIn != null : !LIEU_IN_EDEFAULT.equals(lieuIn);
|
||||
case GamePackage.CHEMIN__LIEU_OUT:
|
||||
return LIEU_OUT_EDEFAULT == null ? lieuOut != null : !LIEU_OUT_EDEFAULT.equals(lieuOut);
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
return connaissances != null && !connaissances.isEmpty();
|
||||
case GamePackage.CHEMIN__OBJETS:
|
||||
return objets != null && !objets.isEmpty();
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
return objetsConso != null && !objetsConso.isEmpty();
|
||||
case GamePackage.CHEMIN__OUVERT:
|
||||
return ouvert != null;
|
||||
case GamePackage.CHEMIN__FERME:
|
||||
return ferme != null;
|
||||
case GamePackage.CHEMIN__VISIBLE:
|
||||
return visible != null;
|
||||
case GamePackage.CHEMIN__OBLIGATOIRE:
|
||||
return obligatoire != null;
|
||||
case GamePackage.CHEMIN__CONNAISSANCES:
|
||||
return connaissances != null && !connaissances.isEmpty();
|
||||
case GamePackage.CHEMIN__OBJETS_RECUS:
|
||||
return objetsRecus != null && !objetsRecus.isEmpty();
|
||||
case GamePackage.CHEMIN__OBJETS_CONSO:
|
||||
return objetsConso != null && !objetsConso.isEmpty();
|
||||
case GamePackage.CHEMIN__DESCRIPTIONS:
|
||||
return descriptions != null && !descriptions.isEmpty();
|
||||
}
|
||||
|
@ -629,8 +629,8 @@ public class CheminImpl extends MinimalEObjectImpl.Container implements Chemin
|
|||
result.append(lieuOut);
|
||||
result.append(", connaissances: ");
|
||||
result.append(connaissances);
|
||||
result.append(", objets: ");
|
||||
result.append(objets);
|
||||
result.append(", objetsRecus: ");
|
||||
result.append(objetsRecus);
|
||||
result.append(", objetsConso: ");
|
||||
result.append(objetsConso);
|
||||
result.append(')');
|
|
@ -5,13 +5,17 @@ package xtext.game.impl;
|
|||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import xtext.game.ConditionEt;
|
||||
import xtext.game.ConditionTest;
|
||||
|
@ -26,7 +30,6 @@ import xtext.game.GamePackage;
|
|||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link xtext.game.impl.ConditionEtImpl#getConditionTest <em>Condition Test</em>}</li>
|
||||
* <li>{@link xtext.game.impl.ConditionEtImpl#getConditonTest <em>Conditon Test</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
|
@ -34,7 +37,7 @@ import xtext.game.GamePackage;
|
|||
public class ConditionEtImpl extends MinimalEObjectImpl.Container implements ConditionEt
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getConditionTest() <em>Condition Test</em>}' reference list.
|
||||
* The cached value of the '{@link #getConditionTest() <em>Condition Test</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConditionTest()
|
||||
|
@ -43,16 +46,6 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
*/
|
||||
protected EList<ConditionTest> conditionTest;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConditonTest() <em>Conditon Test</em>}' reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConditonTest()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<ConditionTest> conditonTest;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
|
@ -84,7 +77,7 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
{
|
||||
if (conditionTest == null)
|
||||
{
|
||||
conditionTest = new EObjectResolvingEList<ConditionTest>(ConditionTest.class, this, GamePackage.CONDITION_ET__CONDITION_TEST);
|
||||
conditionTest = new EObjectContainmentEList<ConditionTest>(ConditionTest.class, this, GamePackage.CONDITION_ET__CONDITION_TEST);
|
||||
}
|
||||
return conditionTest;
|
||||
}
|
||||
|
@ -95,13 +88,14 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<ConditionTest> getConditonTest()
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
if (conditonTest == null)
|
||||
switch (featureID)
|
||||
{
|
||||
conditonTest = new EObjectResolvingEList<ConditionTest>(ConditionTest.class, this, GamePackage.CONDITION_ET__CONDITON_TEST);
|
||||
case GamePackage.CONDITION_ET__CONDITION_TEST:
|
||||
return ((InternalEList<?>)getConditionTest()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return conditonTest;
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,8 +110,6 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
{
|
||||
case GamePackage.CONDITION_ET__CONDITION_TEST:
|
||||
return getConditionTest();
|
||||
case GamePackage.CONDITION_ET__CONDITON_TEST:
|
||||
return getConditonTest();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
@ -137,10 +129,6 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
getConditionTest().clear();
|
||||
getConditionTest().addAll((Collection<? extends ConditionTest>)newValue);
|
||||
return;
|
||||
case GamePackage.CONDITION_ET__CONDITON_TEST:
|
||||
getConditonTest().clear();
|
||||
getConditonTest().addAll((Collection<? extends ConditionTest>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
@ -158,9 +146,6 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
case GamePackage.CONDITION_ET__CONDITION_TEST:
|
||||
getConditionTest().clear();
|
||||
return;
|
||||
case GamePackage.CONDITION_ET__CONDITON_TEST:
|
||||
getConditonTest().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
@ -177,8 +162,6 @@ public class ConditionEtImpl extends MinimalEObjectImpl.Container implements Con
|
|||
{
|
||||
case GamePackage.CONDITION_ET__CONDITION_TEST:
|
||||
return conditionTest != null && !conditionTest.isEmpty();
|
||||
case GamePackage.CONDITION_ET__CONDITON_TEST:
|
||||
return conditonTest != null && !conditonTest.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
|
@ -5,13 +5,17 @@ package xtext.game.impl;
|
|||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import xtext.game.Condition;
|
||||
import xtext.game.ConditionEt;
|
||||
|
@ -33,7 +37,7 @@ import xtext.game.GamePackage;
|
|||
public class ConditionImpl extends MinimalEObjectImpl.Container implements Condition
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getCondition() <em>Condition</em>}' reference list.
|
||||
* The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getCondition()
|
||||
|
@ -73,11 +77,27 @@ public class ConditionImpl extends MinimalEObjectImpl.Container implements Condi
|
|||
{
|
||||
if (condition == null)
|
||||
{
|
||||
condition = new EObjectResolvingEList<ConditionEt>(ConditionEt.class, this, GamePackage.CONDITION__CONDITION);
|
||||
condition = new EObjectContainmentEList<ConditionEt>(ConditionEt.class, this, GamePackage.CONDITION__CONDITION);
|
||||
}
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GamePackage.CONDITION__CONDITION:
|
||||
return ((InternalEList<?>)getCondition()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue