Class: Battle::Visual::HPAnimation
- Inherits:
-
Yuki::Animation::DiscreetAnimation
- Object
- Yuki::Animation::TimedAnimation
- Yuki::Animation::DiscreetAnimation
- Battle::Visual::HPAnimation
- Defined in:
- docs/5_Battle_02_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
432 433 |
# File 'docs/5_Battle_02_Visual.rb', line 432 def initialize(scene, target, quantity, effectiveness = nil) end |
Instance Method Details
#done? ⇒ Boolean
Detect if the animation if done
439 440 |
# File 'docs/5_Battle_02_Visual.rb', line 439 def done? end |
#effectiveness_sound(effectiveness)
Play the effectiveness sound
442 443 |
# File 'docs/5_Battle_02_Visual.rb', line 442 def effectiveness_sound(effectiveness) end |
#update
Update the animation
435 436 |
# File 'docs/5_Battle_02_Visual.rb', line 435 def update end |