Class: UI::Hall_of_Fame::Party_Battler_Stack

Inherits:
SpriteStack show all
Defined in:
docs/01450_Systems_00300_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

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

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

Instance Method Summary collapse

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

Parameters:



296
297
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 296

def initialize(viewport)
end

Instance Attribute Details

#pokemon_arrArray<UI::PokemonFaceSprite>

The Array containing the front battlers of the Pokemon

Returns:



282
283
284
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 282

def pokemon_arr
  @pokemon_arr
end

#trainer_battlerSprite

The trainer battler

Returns:



285
286
287
# File 'docs/01450_Systems_00300_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

Returns:

  • (Array<Integer>)

    the coordinates



300
301
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 300

def pkm_initial_coordinates(index)
end

#trainer_initial_coordinatesArray<Integer>

The trainer sprite initial coordinates

Returns:

  • (Array<Integer>)

    the coordinates



304
305
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 304

def trainer_initial_coordinates
end