Class: UI::Storage::PartyStack
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- UI::Storage::PartyStack
- Defined in:
- docs/4_Systems_200_Storage.rb
Overview
Stack responsive of showing a party
Constant Summary collapse
- SLOT_IMAGES =
List of images according to the mode
{pokemon: 'pc/party_pkmn', item: 'pc/party_items', battle: 'pc/party_battle'}
- POKEMON_COORDINATES =
List of coordinate for Pokemon sprite
[[224, 64], [272, 80], [224, 112], [272, 128], [224, 160], [272, 176]]
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#mode ⇒ Symbol
Get the current mode.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(data)
Update the data.
-
#gray_pokemon {|pokemon| ... }
Make the pokemon gray depending on a criteria.
-
#hovering_left_arrow? ⇒ Boolean
Tell if the left arrow is hovered.
-
#hovering_right_arrow? ⇒ Boolean
Tell if the right arrow is hovered.
-
#initialize(viewport, mode_handler, selection_handler) ⇒ PartyStack
constructor
Create a new party stack.
-
#pokemon_sprites ⇒ Array<Sprite>
Get the Pokemon sprites.
-
#update_selection(selection)
Update the selection.
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, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, mode_handler, selection_handler) ⇒ PartyStack
Create a new party stack
804 805 |
# File 'docs/4_Systems_200_Storage.rb', line 804 def initialize(, mode_handler, selection_handler) end |
Instance Attribute Details
#mode ⇒ Symbol
Get the current mode
795 796 797 |
# File 'docs/4_Systems_200_Storage.rb', line 795 def mode @mode end |
Instance Method Details
#data=(data)
Update the data
812 813 |
# File 'docs/4_Systems_200_Storage.rb', line 812 def data=(data) end |
#gray_pokemon {|pokemon| ... }
Make the pokemon gray depending on a criteria
816 817 |
# File 'docs/4_Systems_200_Storage.rb', line 816 def gray_pokemon end |
#hovering_left_arrow? ⇒ Boolean
Tell if the left arrow is hovered
828 829 |
# File 'docs/4_Systems_200_Storage.rb', line 828 def hovering_left_arrow? end |
#hovering_right_arrow? ⇒ Boolean
Tell if the right arrow is hovered
832 833 |
# File 'docs/4_Systems_200_Storage.rb', line 832 def hovering_right_arrow? end |
#pokemon_sprites ⇒ Array<Sprite>
Get the Pokemon sprites
824 825 |
# File 'docs/4_Systems_200_Storage.rb', line 824 def pokemon_sprites end |
#update_selection(selection)
Update the selection
808 809 |
# File 'docs/4_Systems_200_Storage.rb', line 808 def update_selection(selection) end |