Class: Battle::Visual::HPAnimation

Inherits:
Yuki::Animation::Player show all
Defined in:
docs/5_Battle_02_Visual.rb

Overview

Animation of HP getting down/up

Instance Attribute Summary

Attributes included from Yuki::AnimationMixin

#player, #resolver

Instance Method Summary collapse

Methods inherited from Yuki::Animation::Player

#animation_index, #duration, #first_start_time, #last_end_time, #parallel_add, #play, #resolver=, #root, #start

Methods included from Yuki::AnimationMixin

#begin_offset_for_next_animation, #duration, #start

Constructor Details

#initialize(scene, target, quantity, _effectiveness = nil) ⇒ HPAnimation

Create the HP Animation

Parameters:

  • scene (Battle::Scene) —

    scene responsive of holding all the battle information

  • target (PFM::PokemonBattler) —

    battler getting its HP down/up

  • quantity (Integer) —

    quantity of HP the battler is getting

  • _effectiveness (Float, nil) (defaults to: nil)


598
599
# File 'docs/5_Battle_02_Visual.rb', line 598

def initialize(scene, target, quantity, _effectiveness = nil)
end

Instance Method Details

#done? ⇒ Boolean

Detect if the animation if done

Returns:

  • (Boolean)


605
606
# File 'docs/5_Battle_02_Visual.rb', line 605

def done?
end

#update

Update the animation



601
602
# File 'docs/5_Battle_02_Visual.rb', line 601

def update
end