Class: Yuki::Animation::AudioCommand
- Inherits:
-
Command
- Object
- TimedAnimation
- Command
- Yuki::Animation::AudioCommand
- 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, #time_source
Attributes included from Yuki::AnimationMixin
Instance Method Summary collapse
-
#initialize(type, *args) ⇒ AudioCommand
constructor
Create a new AudioCommand.
Methods inherited from Command
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(type, *args) ⇒ AudioCommand
Create a new AudioCommand
652 653 |
# File 'docs/4_Systems_005_Animation.rb', line 652 def initialize(type, *args) end |