27 Q_PROPERTY(QString goalState READ goalState WRITE setGoalState NOTIFY goalStateChanged)
28 Q_PROPERTY(
bool jump READ jump WRITE setJump NOTIFY jumpChanged)
29 Q_PROPERTY(
bool systemStates READ systemStates WRITE setSystemStates NOTIFY systemStatesChanged)
30 QML_NAMED_ELEMENT(SpriteGoal)
31 QML_ADDED_IN_VERSION(2, 0)
33 explicit QQuickSpriteGoalAffector(QQuickItem *parent =
nullptr);
35 QString goalState()
const
44 bool systemStates()
const
46 return m_systemStates;
50 bool affectParticle(QQuickParticleData *d, qreal dt) override;
54 void goalStateChanged(
const QString &arg);
56 void jumpChanged(
bool arg);
58 void systemStatesChanged(
bool arg);
62void setGoalState(
const QString &arg);
68 Q_EMIT jumpChanged(arg);
72void setSystemStates(
bool arg)
74 if (m_systemStates != arg) {
76 qmlWarning(
this) <<
"systemStates is deprecated and will be removed soon. Use GroupGoal instead.";
78 Q_EMIT systemStatesChanged(arg);
83 void updateStateIndex(QQuickStochasticEngine* e);
86 QQuickStochasticEngine* m_lastEngine;
90 bool m_notUsingEngine;