Class: UI::Hall_of_Fame::Party_Battler_Stack
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Hall_of_Fame::Party_Battler_Stack
- Defined in:
- docs/4_Systems_300_Hall_of_fame.rb
Overview
Class that define the Party Battler stack
Constant Summary collapse
- X_PARTY =
X coordinates for the party elements
[99, 221, 69, 251, 38, 282]
- Y_PARTY =
Y coordinates for the party elements
[180, 150, 120]
- Y_TRAINER =
Y coordinate for the trainer
102
- PLAYER_SPRITE_NAME =
Trainer sprite filename based on its gender
{true => 'hall_of_fame/female', false => 'hall_of_fame/male'}
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#pokemon_arr ⇒ Array<UI::PokemonFaceSprite>
The Array containing the front battlers of the Pokemon.
-
#trainer_battler ⇒ Sprite
The trainer battler.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport) ⇒ Party_Battler_Stack
constructor
Initialize the SpriteStack.
-
#pkm_initial_coordinates(index) ⇒ Array<Integer>
The Pokemon initial coordinates.
-
#trainer_initial_coordinates ⇒ Array<Integer>
The trainer sprite initial coordinates.
Methods inherited from 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) ⇒ Party_Battler_Stack
Initialize the SpriteStack
296 297 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 296 def initialize() end |
Instance Attribute Details
#pokemon_arr ⇒ Array<UI::PokemonFaceSprite>
The Array containing the front battlers of the Pokemon
282 283 284 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 282 def pokemon_arr @pokemon_arr end |
#trainer_battler ⇒ Sprite
The trainer battler
285 286 287 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 285 def trainer_battler @trainer_battler end |
Instance Method Details
#pkm_initial_coordinates(index) ⇒ Array<Integer>
The Pokemon initial coordinates
300 301 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 300 def pkm_initial_coordinates(index) end |
#trainer_initial_coordinates ⇒ Array<Integer>
The trainer sprite initial coordinates
304 305 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 304 def trainer_initial_coordinates end |