Class: Yuki::Animation::AudioCommand

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

Overview

Animation command responsive of playing / stopping audio. It sends the type command to Audio with *args as parameter.

Example: Playing a SE

AudioCommand.new(:se_play, 'audio/se/filename', 80, 80)

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(type, *args) ⇒ AudioCommand

Create a new AudioCommand

Parameters:

  • type (Symbol)

    name of the method of Audio to call

  • args (Array)

    parameter to send to the command



424
425
# File 'docs/4_Systems_005_Animation.rb', line 424

def initialize(type, *args)
end