Class: BattleUI::ExpDistribution::PokemonInfo

Inherits:
UI::SpriteStack show all
Defined in:
docs/01600_Alpha_25_Battle_Engine_00001_Battle_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

Attributes inherited from UI::SpriteStack

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

Instance Method Summary collapse

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

Parameters:



1647
1648
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1647

def initialize(viewport, index, pokemon, exp_received)
end

Instance Attribute Details

#leveling_upBoolean

Tell if the pokemon is leveling up or not

Returns:

  • (Boolean)


1639
1640
1641
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1639

def leveling_up
  @leveling_up
end

Instance Method Details

#data=(pokemon)

Set the data shown by the UI element

Parameters:



1654
1655
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1654

def data=(pokemon)
end

#update

Update the animation



1650
1651
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1650

def update
end