Class: Yuki::Animation::TimedLoopAnimation
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
This kind of animation is not designed for object creation, please refrain from creating objects inside those kind of animations.
Class responsive of making "looped" animation
This class works exactly the same as Player putting aside it's always done and will update its sub/parallel animations. When the loop duration is reached, it restart all the animations with the appropriate offset.
Instance Attribute Summary
Attributes included from Yuki::AnimationMixin
Instance Method Summary collapse
-
#done? ⇒ Boolean
Check if the animation is done.
-
#duration ⇒ Float
Get the animation duration in seconds.
-
#initialize(time_to_process, animations = nil, parallel = nil, distortion = :UNICITY_DISTORTION, time_source = :SCENE_TIME_SOURCE) ⇒ TimedLoopAnimation
constructor
Create a new timed loop animation.
-
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it).
-
#update
Update the looped animation.
Methods inherited from Player
#animation_index, #first_start_time, #last_end_time, #parallel_add, #play, #resolver=, #root
Methods included from Yuki::AnimationMixin
#begin_offset_for_next_animation
Constructor Details
#initialize(time_to_process, animations = nil, parallel = nil, distortion = :UNICITY_DISTORTION, time_source = :SCENE_TIME_SOURCE) ⇒ TimedLoopAnimation
Create a new timed loop animation
286 287 |
# File 'docs/4_Systems_005_Animation.rb', line 286 def initialize(time_to_process, animations = nil, parallel = nil, distortion = :UNICITY_DISTORTION, time_source = :SCENE_TIME_SOURCE) end |
Instance Method Details
#done? ⇒ Boolean
Check if the animation is done
302 303 |
# File 'docs/4_Systems_005_Animation.rb', line 302 def done? end |
#duration ⇒ Float
Get the animation duration in seconds
298 299 |
# File 'docs/4_Systems_005_Animation.rb', line 298 def duration end |
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it)
291 292 |
# File 'docs/4_Systems_005_Animation.rb', line 291 def start(begin_offset = 0) end |
#update
Update the looped animation
294 295 |
# File 'docs/4_Systems_005_Animation.rb', line 294 def update end |