83 Actor* mActor =
nullptr;
85 Q_DECLARE_METATYPE(
Logic*)
bool isActive() const
Returns active.
Definition: Logic.h:56
virtual void init()
Performs initialization of this Logic.
void setActive(bool value)
Sets active.
bool active
Whether or not Engine calls update() on this Logic during the Engine::LOGICS_PHASE.
Definition: Logic.h:40
void activeChanged()
Emitted when active changes.
Actor actor
Parent actor that is affected by this Logic's behavior.
Definition: Logic.h:36
Actor * getActor() const
Returns actor.
Definition: Logic.h:52
virtual void update()
Performs the update (i.e. execution of behavior) of this Logic.
Non-visual entities in the QML item tree that define behavior for their parent Actor.
Definition: Logic.h:31
Representation of an entity within the Game scene.
Definition: Actor.h:40