Class: Battle::Visual::HPAnimation
- Inherits:
-
Yuki::Animation::DiscreetAnimation
- Object
- Yuki::Animation::TimedAnimation
- Yuki::Animation::DiscreetAnimation
- Battle::Visual::HPAnimation
- Defined in:
- docs/01600_Alpha_25_Battle_Engine_00002_Battle_Visual.rb
Overview
Animation of HP getting down/up
Instance Attribute Summary
Attributes inherited from Yuki::Animation::TimedAnimation
#begin_time, #end_time, #parallel_animations, #root, #sub_animation, #time_source
Instance Method Summary collapse
-
#done? ⇒ Boolean
Detect if the animation if done.
-
#effectiveness_sound(effectiveness)
Play the effectiveness sound.
-
#initialize(scene, target, quantity, effectiveness = nil) ⇒ HPAnimation
constructor
Create the HP Animation.
-
#update
Update the animation.
Methods inherited from Yuki::Animation::DiscreetAnimation
Methods inherited from Yuki::Animation::TimedAnimation
#in_parallel_of, #parallel_add, #play_before, #resolver=, #start
Constructor Details
#initialize(scene, target, quantity, effectiveness = nil) ⇒ HPAnimation
Create the HP Animation
426 427 |
# File 'docs/01600_Alpha_25_Battle_Engine_00002_Battle_Visual.rb', line 426 def initialize(scene, target, quantity, effectiveness = nil) end |
Instance Method Details
#done? ⇒ Boolean
Detect if the animation if done
433 434 |
# File 'docs/01600_Alpha_25_Battle_Engine_00002_Battle_Visual.rb', line 433 def done? end |
#effectiveness_sound(effectiveness)
Play the effectiveness sound
436 437 |
# File 'docs/01600_Alpha_25_Battle_Engine_00002_Battle_Visual.rb', line 436 def effectiveness_sound(effectiveness) end |
#update
Update the animation
429 430 |
# File 'docs/01600_Alpha_25_Battle_Engine_00002_Battle_Visual.rb', line 429 def update end |