Class: BattleUI::ExpDistribution::PokemonInfo
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- BattleUI::ExpDistribution::PokemonInfo
- Defined in:
- docs/5_Battle_01_Scene.rb
Overview
UI element showing the basic information
Constant Summary collapse
- EXP_BAR_INFO =
The information of the Exp Bar
[79, 2, 0, 0, 1]
- COORDINATES =
Coordinate where the UI element is supposed to show
[[17, 10], [162, 20], [17, 50], [162, 60], [17, 90], [162, 100]]
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#leveling_up ⇒ Boolean
Tell if the pokemon is leveling up or not.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(pokemon)
Set the data shown by the UI element.
-
#initialize(viewport, index, pokemon, exp_received) ⇒ PokemonInfo
constructor
Create a new Pokemon Info.
-
#update
Update the animation.
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, index, pokemon, exp_received) ⇒ PokemonInfo
Create a new Pokemon Info
1676 1677 |
# File 'docs/5_Battle_01_Scene.rb', line 1676 def initialize(, index, pokemon, exp_received) end |
Instance Attribute Details
#leveling_up ⇒ Boolean
Tell if the pokemon is leveling up or not
1668 1669 1670 |
# File 'docs/5_Battle_01_Scene.rb', line 1668 def leveling_up @leveling_up end |
Instance Method Details
#data=(pokemon)
Set the data shown by the UI element
1683 1684 |
# File 'docs/5_Battle_01_Scene.rb', line 1683 def data=(pokemon) end |
#update
Update the animation
1679 1680 |
# File 'docs/5_Battle_01_Scene.rb', line 1679 def update end |