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, #parallel_animations, #root, #sub_animation, #time_source

Instance Method Summary collapse

Methods inherited from Yuki::Animation::TimedAnimation

#in_parallel_of, #parallel_add, #play_before, #resolver=, #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)

    Pokemon getting its HP down/up

  • effectiveness (Integer, nil) (defaults to: nil)

    optional param to play the effectiveness sound if that comes from using a move



459
460
# File 'docs/5_Battle_02_Visual.rb', line 459

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

Instance Method Details

#done?Boolean

Detect if the animation if done

Returns:

  • (Boolean)


466
467
# File 'docs/5_Battle_02_Visual.rb', line 466

def done?
end

#effectiveness_sound(effectiveness)

Play the effectiveness sound



469
470
# File 'docs/5_Battle_02_Visual.rb', line 469

def effectiveness_sound(effectiveness)
end

#update

Update the animation



462
463
# File 'docs/5_Battle_02_Visual.rb', line 462

def update
end