class

PointClickEngine::Actions::ActionRunner

Inherits Reference < Object

Runs a sequence of actions

Constructors

new(name : String, engine : Core::Engine | Nil = nil)
Source

Instance methods

action_count

Get total action count

Source
actions
Source
actions=(actions : Array(ActionInstance))
Source
add(data : ActionData)

Add action from ActionData

Source
add(action : ActionInstance)

Add action instance directly

Source
add_callback(callback : Proc(Nil))

Add action with callback (for code-defined actions)

Source
add_parallel(actions : Array(ActionData))

Add parallel action group - all actions run simultaneously

Source
auto_advance
Source
auto_advance=(auto_advance : Bool)
Source
checkpoints

Checkpoints for skip/resume functionality

Source
checkpoints=(checkpoints : Array(ActionCheckpoint))

Checkpoints for skip/resume functionality

Source
completed
Source
completed=(completed : Bool)
Source
conditions

Conditions for conditional execution

Source
conditions=(conditions : Array(ActionCondition))

Conditions for conditional execution

Source
current_index
Source
current_index=(current_index : Int32)
Source
draw

Draw action overlays (for text, custom visuals)

Source
engine

Get engine (lazy access to singleton if not set)

Source
engine=(engine : Core::Engine)

Set engine reference

Source
evaluate_condition(name : String) : Bool

Evaluate a condition and execute its actions if true Returns true if condition was met and actions were executed

Source
evaluate_start_conditions

Evaluate all conditions at the start of the sequence

Source
executor

Executor reference (set externally or created lazily)

Source
executor=(executor : ActionExecutor | Nil)

Executor reference (set externally or created lazily)

Source
get_checkpoint(name : String) : ActionCheckpoint | Nil

Get checkpoint by name

Source
get_variable(name : String) : YAML::Any | Nil

Get a variable value

Source
has_active_parallels?

Check if any parallel runners are still active

Source
jump_to_checkpoint(name : String) : Bool

Jump to a named checkpoint

Source
name
Source
name=(name : String)
Source
on_action_complete
Source
on_action_complete=(on_action_complete : Proc(ActionInstance, Nil) | Nil)
Source
on_action_start
Source
on_action_start=(on_action_start : Proc(ActionInstance, Nil) | Nil)
Source
on_complete

Callbacks

Source
on_complete=(on_complete : Proc(Nil) | Nil)

Callbacks

Source
play

Start playing the action sequence

Source
progress

Get current progress (0.0 to 1.0)

Source
reset

Reset for replay

Source
running
Source
running=(running : Bool)
Source
skip

Skip to end of sequence

Source
skippable
Source
skippable=(skippable : Bool)
Source
stop

Stop the action sequence

Source
update(dt : Float32)

Update the action sequence (call every frame)

Source
variables

Variables from YAML (for reference/debugging)

Source
variables=(variables : Hash(String, YAML::Any))

Variables from YAML (for reference/debugging)

Source