Class: BattleUI::ExpDistribution::Statistics

Inherits:
UI::SpriteStack show all
Includes:
GoingInOut
Defined in:
docs/5_Battle_01_Scene.rb

Overview

UI element showing the new statistics

Constant Summary collapse

IN_POSITION =

Position of the sprite when it's in

[0, 144]

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from UI::SpriteStack

#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods included from GoingInOut

#go_in, #go_out, #in?, #out?

Methods inherited from UI::SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, pokemon, list0, list1) ⇒ Statistics

Create a new Statistics UI

Parameters:

  • viewport (Viewport)
  • pokemon (PFM::Pokemon) —

    Pokemon that is currently leveling up

  • list0 (Array<Integer>) —

    old basis stats

  • list1 (Array<Integer>) —

    new basis stats



2026
2027
# File 'docs/5_Battle_01_Scene.rb', line 2026

def initialize(viewport, pokemon, list0, list1)
end

Instance Attribute Details

#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::AnimationMixin} (readonly)

Get the animation handler



2018
2019
2020
# File 'docs/5_Battle_01_Scene.rb', line 2018

def animation_handler
  @animation_handler
end

Instance Method Details

#done? ⇒ Boolean

Tell if the animation is done

Returns:

  • (Boolean)


2030
2031
# File 'docs/5_Battle_01_Scene.rb', line 2030

def done?
end

#update

Update the animation



2033
2034
# File 'docs/5_Battle_01_Scene.rb', line 2033

def update
end