17 #ifndef MAGNETICHIGHLIGHTLOGIC_H
18 #define MAGNETICHIGHLIGHTLOGIC_H
20 #include <Engine/Logic.h>
70 virtual void update()
override;
79 bool mInAttractorRange =
false;
80 bool mMarkedInAttractorRange =
false;
84 #endif // MAGNETICHIGHLIGHTLOGIC_H
bool isInAttractorRange() const
Returns inAttractorRange.
Definition: MagneticHighlightLogic.h:51
bool inAttractorRange
Whether or not there is currently an attractor within range of this actor.
Definition: MagneticHighlightLogic.h:45
void setInAttractorRange(bool value)
Sets inAttractorRange.
virtual void update() override
Performs latching of inAttractorRange in response to calls to notifyInAttractorRange().
void notifyInAttractorRange()
Marks this actor as having an attractor within range this frame.
Non-visual entities in the QML item tree that define behavior for their parent Actor.
Definition: Logic.h:31
void inAttractorRangeChanged()
Emitted when inAttractorRange has changed.
Class which mediates between magnetic attractors and magnet visual effects on target objects...
Definition: MagneticHighlightLogic.h:38