Class: Battle::Visual::FakeHPAnimation

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

Overview

Waiting animation if 0 HP are dealt

Instance Attribute Summary

Attributes inherited from Yuki::Animation::TimedAnimation

#begin_time, #end_time, #time_source

Attributes included from Yuki::AnimationMixin

#player, #resolver

Instance Method Summary collapse

Methods inherited from Yuki::Animation::TimedAnimation

#parallel_add, #play_before, #start

Methods included from Yuki::AnimationMixin

#begin_offset_for_next_animation, #start

Constructor Details

#initialize(scene, target, _effectiveness = nil) ⇒ FakeHPAnimation

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

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


632
633
# File 'docs/5_Battle_02_Visual.rb', line 632

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

Instance Method Details

#done? ⇒ Boolean

Detect if the animation if done

Returns:

  • (Boolean)


639
640
# File 'docs/5_Battle_02_Visual.rb', line 639

def done?
end

#update

Update the animation



635
636
# File 'docs/5_Battle_02_Visual.rb', line 635

def update
end