class

PointClickEngine::Actions::ActionExecutor

Inherits Reference < Object

Executes action instances - all action logic in one place

Constructors

new(engine : Core::Engine)
Source

Instance methods

draw(action : ActionInstance)

Draw action overlays (for text, custom visuals)

Source
finish(action : ActionInstance, scene : Scenes::Scene)

Finish an action - called once when action completes

Source
register_action(type : String, start : ActionStartHandler | Nil = nil, update : ActionUpdateHandler | Nil = nil, finish : ActionFinishHandler | Nil = nil, draw : ActionDrawHandler | Nil = nil)

Register a custom action handler

Source
start(action : ActionInstance, scene : Scenes::Scene)

Start an action - called once when action begins

Source
unregister_action(type : String)

Unregister a custom action handler

Source
update(action : ActionInstance, scene : Scenes::Scene, dt : Float32) : Bool

Update an action - called every frame while running Returns true if action is complete

Source