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, #time_source

Attributes included from Yuki::AnimationMixin

#player, #resolver

Instance Method Summary collapse

Methods inherited from Command

#duration, #start, #update

Methods inherited from TimedAnimation

#done?, #duration, #parallel_add, #play_before, #start, #update

Methods included from Yuki::AnimationMixin

#begin_offset_for_next_animation, #done?, #duration, #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



709
710
# File 'docs/4_Systems_005_Animation.rb', line 709

def initialize(name, command, *args)
end