Class: UI::Hall_of_Fame::Pokemon_Battler_Stack

Inherits:
SpriteStack show all
Defined in:
docs/01450_Systems_00300_Hall_of_fame.rb

Overview

Class that define the stack containing the Pokemon’s battlers

Constant Summary collapse

COLORS =

All the colors based on 1st type of the creature

[[0, 0, 0, 255], [188, 187, 187, 255], [224, 56, 24, 255], [8, 124, 248, 255], [248, 208, 64, 255], [32, 192, 80, 255], [125, 186, 228, 255], [190, 74, 39, 255], [178, 74, 155, 255], [183, 122, 36, 255], [78, 176, 228, 255], [212, 108, 170, 255], [176, 213, 115, 255], [173, 126, 94, 255], [136, 111, 186, 255], [75, 155, 217, 255], [172, 178, 188, 255], [184, 85, 140, 255], [221, 139, 180, 255]]
X_LEFT =

X Left

-48
# X Right
X_RIGHT =

X Right

78
X_COLOR_RIGHT =

X Right color

88

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) ⇒ Pokemon_Battler_Stack

Initialize the SpriteStack

Parameters:



77
78
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 77

def initialize(viewport)
end

Instance Attribute Details

#battlebacksArray<UI::PokemonBackSprite>

The Array containing every back sprites of the player team

Returns:



68
69
70
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 68

def battlebacks
  @battlebacks
end

#battlefrontsArray<UI::PokemonFaceSprite>

The Array containing every front sprites of the player team

Returns:



71
72
73
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 71

def battlefronts
  @battlefronts
end

#withcolorbacksArray<Sprite::WithColor>

The Array containing every colored back sprites of the player team

Returns:



74
75
76
# File 'docs/01450_Systems_00300_Hall_of_fame.rb', line 74

def withcolorbacks
  @withcolorbacks
end