2021-11-30 17:25:45 +00:00
|
|
|
/**
|
|
|
|
* generated by Xtext 2.23.0
|
|
|
|
*/
|
|
|
|
package xtext.game.impl;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
import org.eclipse.emf.common.notify.Notification;
|
|
|
|
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.ENotificationImpl;
|
|
|
|
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
|
|
|
|
|
|
|
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
2021-12-03 07:36:23 +00:00
|
|
|
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
|
|
|
import org.eclipse.emf.ecore.util.InternalEList;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
import xtext.game.Action;
|
|
|
|
import xtext.game.Condition;
|
2021-12-03 07:36:23 +00:00
|
|
|
import xtext.game.Description;
|
2021-11-30 17:25:45 +00:00
|
|
|
import xtext.game.GamePackage;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* An implementation of the model object '<em><b>Action</b></em>'.
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* <p>
|
|
|
|
* The following features are implemented:
|
|
|
|
* </p>
|
|
|
|
* <ul>
|
2021-12-03 07:36:23 +00:00
|
|
|
* <li>{@link xtext.game.impl.ActionImpl#getDescriptions <em>Descriptions</em>}</li>
|
|
|
|
* <li>{@link xtext.game.impl.ActionImpl#getVisible <em>Visible</em>}</li>
|
2021-11-30 17:25:45 +00:00
|
|
|
* <li>{@link xtext.game.impl.ActionImpl#getConnaissances <em>Connaissances</em>}</li>
|
2021-12-03 07:36:23 +00:00
|
|
|
* <li>{@link xtext.game.impl.ActionImpl#getObjetsRecus <em>Objets Recus</em>}</li>
|
2021-11-30 17:25:45 +00:00
|
|
|
* <li>{@link xtext.game.impl.ActionImpl#getObjetsConso <em>Objets Conso</em>}</li>
|
2021-12-03 07:36:23 +00:00
|
|
|
* <li>{@link xtext.game.impl.ActionImpl#getFinInteraction <em>Fin Interaction</em>}</li>
|
2021-11-30 17:25:45 +00:00
|
|
|
* </ul>
|
|
|
|
*
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
public class ActionImpl extends MinimalEObjectImpl.Container implements Action
|
|
|
|
{
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getDescriptions()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<Description> descriptions;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getVisible() <em>Visible</em>}' containment reference.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getVisible()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected Condition visible;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getConnaissances() <em>Connaissances</em>}' attribute list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getConnaissances()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<String> connaissances;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getObjetsRecus() <em>Objets Recus</em>}' attribute list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getObjetsRecus()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<String> objetsRecus;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getObjetsConso() <em>Objets Conso</em>}' attribute list.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getObjetsConso()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
|
|
|
* @ordered
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EList<String> objetsConso;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2021-12-03 07:36:23 +00:00
|
|
|
* The cached value of the '{@link #getFinInteraction() <em>Fin Interaction</em>}' containment reference.
|
2021-11-30 17:25:45 +00:00
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
2021-12-03 07:36:23 +00:00
|
|
|
* @see #getFinInteraction()
|
2021-11-30 17:25:45 +00:00
|
|
|
* @generated
|
2021-12-03 07:36:23 +00:00
|
|
|
* @ordered
|
2021-11-30 17:25:45 +00:00
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected Condition finInteraction;
|
2021-11-30 17:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
protected ActionImpl()
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
super();
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
2021-12-03 07:36:23 +00:00
|
|
|
protected EClass eStaticClass()
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
return GamePackage.Literals.ACTION;
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
2021-12-03 07:36:23 +00:00
|
|
|
public EList<Description> getDescriptions()
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
if (descriptions == null)
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
descriptions = new EObjectContainmentEList<Description>(Description.class, this, GamePackage.ACTION__DESCRIPTIONS);
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
2021-12-03 07:36:23 +00:00
|
|
|
return descriptions;
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Condition getVisible()
|
|
|
|
{
|
|
|
|
return visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
public NotificationChain basicSetVisible(Condition newVisible, NotificationChain msgs)
|
|
|
|
{
|
|
|
|
Condition oldVisible = visible;
|
|
|
|
visible = newVisible;
|
|
|
|
if (eNotificationRequired())
|
|
|
|
{
|
|
|
|
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__VISIBLE, oldVisible, newVisible);
|
|
|
|
if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
|
}
|
|
|
|
return msgs;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void setVisible(Condition newVisible)
|
|
|
|
{
|
|
|
|
if (newVisible != visible)
|
|
|
|
{
|
|
|
|
NotificationChain msgs = null;
|
|
|
|
if (visible != null)
|
|
|
|
msgs = ((InternalEObject)visible).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GamePackage.ACTION__VISIBLE, null, msgs);
|
|
|
|
if (newVisible != null)
|
|
|
|
msgs = ((InternalEObject)newVisible).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GamePackage.ACTION__VISIBLE, null, msgs);
|
|
|
|
msgs = basicSetVisible(newVisible, msgs);
|
|
|
|
if (msgs != null) msgs.dispatch();
|
|
|
|
}
|
|
|
|
else if (eNotificationRequired())
|
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__VISIBLE, newVisible, newVisible));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
2021-12-03 07:36:23 +00:00
|
|
|
public EList<String> getConnaissances()
|
|
|
|
{
|
|
|
|
if (connaissances == null)
|
|
|
|
{
|
|
|
|
connaissances = new EDataTypeEList<String>(String.class, this, GamePackage.ACTION__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.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()
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
return finInteraction;
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
2021-12-03 07:36:23 +00:00
|
|
|
public NotificationChain basicSetFinInteraction(Condition newFinInteraction, NotificationChain msgs)
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
Condition oldFinInteraction = finInteraction;
|
|
|
|
finInteraction = newFinInteraction;
|
2021-11-30 17:25:45 +00:00
|
|
|
if (eNotificationRequired())
|
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__FIN_INTERACTION, oldFinInteraction, newFinInteraction);
|
2021-11-30 17:25:45 +00:00
|
|
|
if (msgs == null) msgs = notification; else msgs.add(notification);
|
|
|
|
}
|
|
|
|
return msgs;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
2021-12-03 07:36:23 +00:00
|
|
|
public void setFinInteraction(Condition newFinInteraction)
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
if (newFinInteraction != finInteraction)
|
2021-11-30 17:25:45 +00:00
|
|
|
{
|
|
|
|
NotificationChain msgs = null;
|
2021-12-03 07:36:23 +00:00
|
|
|
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);
|
2021-11-30 17:25:45 +00:00
|
|
|
if (msgs != null) msgs.dispatch();
|
|
|
|
}
|
|
|
|
else if (eNotificationRequired())
|
2021-12-03 07:36:23 +00:00
|
|
|
eNotify(new ENotificationImpl(this, Notification.SET, GamePackage.ACTION__FIN_INTERACTION, newFinInteraction, newFinInteraction));
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__DESCRIPTIONS:
|
|
|
|
return ((InternalEList<?>)getDescriptions()).basicRemove(otherEnd, msgs);
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__VISIBLE:
|
|
|
|
return basicSetVisible(null, msgs);
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__FIN_INTERACTION:
|
|
|
|
return basicSetFinInteraction(null, msgs);
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
return super.eInverseRemove(otherEnd, featureID, msgs);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__DESCRIPTIONS:
|
|
|
|
return getDescriptions();
|
|
|
|
case GamePackage.ACTION__VISIBLE:
|
|
|
|
return getVisible();
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__CONNAISSANCES:
|
|
|
|
return getConnaissances();
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__OBJETS_RECUS:
|
|
|
|
return getObjetsRecus();
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__OBJETS_CONSO:
|
|
|
|
return getObjetsConso();
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__FIN_INTERACTION:
|
|
|
|
return getFinInteraction();
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
return super.eGet(featureID, resolve, coreType);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
@Override
|
|
|
|
public void eSet(int featureID, Object newValue)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__DESCRIPTIONS:
|
|
|
|
getDescriptions().clear();
|
|
|
|
getDescriptions().addAll((Collection<? extends Description>)newValue);
|
|
|
|
return;
|
|
|
|
case GamePackage.ACTION__VISIBLE:
|
|
|
|
setVisible((Condition)newValue);
|
|
|
|
return;
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__CONNAISSANCES:
|
|
|
|
getConnaissances().clear();
|
|
|
|
getConnaissances().addAll((Collection<? extends String>)newValue);
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__OBJETS_RECUS:
|
|
|
|
getObjetsRecus().clear();
|
|
|
|
getObjetsRecus().addAll((Collection<? extends String>)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
|
|
|
case GamePackage.ACTION__OBJETS_CONSO:
|
|
|
|
getObjetsConso().clear();
|
|
|
|
getObjetsConso().addAll((Collection<? extends String>)newValue);
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__FIN_INTERACTION:
|
|
|
|
setFinInteraction((Condition)newValue);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
super.eSet(featureID, newValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void eUnset(int featureID)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__DESCRIPTIONS:
|
|
|
|
getDescriptions().clear();
|
|
|
|
return;
|
|
|
|
case GamePackage.ACTION__VISIBLE:
|
|
|
|
setVisible((Condition)null);
|
|
|
|
return;
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__CONNAISSANCES:
|
|
|
|
getConnaissances().clear();
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__OBJETS_RECUS:
|
|
|
|
getObjetsRecus().clear();
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
|
|
|
case GamePackage.ACTION__OBJETS_CONSO:
|
|
|
|
getObjetsConso().clear();
|
|
|
|
return;
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__FIN_INTERACTION:
|
|
|
|
setFinInteraction((Condition)null);
|
2021-11-30 17:25:45 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
super.eUnset(featureID);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean eIsSet(int featureID)
|
|
|
|
{
|
|
|
|
switch (featureID)
|
|
|
|
{
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__DESCRIPTIONS:
|
|
|
|
return descriptions != null && !descriptions.isEmpty();
|
|
|
|
case GamePackage.ACTION__VISIBLE:
|
|
|
|
return visible != null;
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__CONNAISSANCES:
|
|
|
|
return connaissances != null && !connaissances.isEmpty();
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__OBJETS_RECUS:
|
|
|
|
return objetsRecus != null && !objetsRecus.isEmpty();
|
2021-11-30 17:25:45 +00:00
|
|
|
case GamePackage.ACTION__OBJETS_CONSO:
|
|
|
|
return objetsConso != null && !objetsConso.isEmpty();
|
2021-12-03 07:36:23 +00:00
|
|
|
case GamePackage.ACTION__FIN_INTERACTION:
|
|
|
|
return finInteraction != null;
|
2021-11-30 17:25:45 +00:00
|
|
|
}
|
|
|
|
return super.eIsSet(featureID);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* <!-- begin-user-doc -->
|
|
|
|
* <!-- end-user-doc -->
|
|
|
|
* @generated
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
if (eIsProxy()) return super.toString();
|
|
|
|
|
|
|
|
StringBuilder result = new StringBuilder(super.toString());
|
|
|
|
result.append(" (connaissances: ");
|
|
|
|
result.append(connaissances);
|
2021-12-03 07:36:23 +00:00
|
|
|
result.append(", objetsRecus: ");
|
|
|
|
result.append(objetsRecus);
|
2021-11-30 17:25:45 +00:00
|
|
|
result.append(", objetsConso: ");
|
|
|
|
result.append(objetsConso);
|
|
|
|
result.append(')');
|
|
|
|
return result.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
} //ActionImpl
|