Class: Yuki::Animation::ResolverObjectCommand

Inherits:
Command show all
Defined in:
docs/4_Systems_005_Animation.rb

Overview

Animation command that sends a message to an object in the resolver

Example :

ResolverObjectCommand.new(:star1, :set_position, 0, 0)
# This will call set_position(0, 0) on the star1 object in the resolver

Instance Attribute Summary

Attributes inherited from TimedAnimation

#begin_time, #end_time, #parallel_animations, #root, #sub_animation, #time_source

Instance Method Summary collapse

Methods inherited from Command

#start, #update

Methods inherited from TimedAnimation

#done?, #in_parallel_of, #parallel_add, #play_before, #resolver=, #start, #update

Constructor Details

#initialize(name, command, *args) ⇒ ResolverObjectCommand

Create a new ResolverObjectCommand

Parameters:

  • name (Symbol)

    name of the object in the resolver

  • command (Symbol)

    name of the method to call

  • args (Array)

    arguments to send to the method



478
479
# File 'docs/4_Systems_005_Animation.rb', line 478

def initialize(name, command, *args)
end