Class: UI::Hall_of_Fame::Congratulation_Text_Box

Inherits:
SpriteStack show all
Defined in:
docs/4_Systems_300_Hall_of_fame.rb

Overview

Class that define the Congratulation text box stack

Constant Summary collapse

WHITE_COLOR =

White color

Color.new(255, 255, 255)

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

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, pkm) ⇒ Congratulation_Text_Box

Initialize the SpriteStack

Parameters:



155
156
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 155

def initialize(viewport, pkm)
end

Instance Method Details

#bmp_filenameString

The base filename of the window

Returns:



159
160
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 159

def bmp_filename
end

#number_of_typesInteger

Check how many types the game has

Returns:

  • (Integer)

    the number of types



167
168
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 167

def number_of_types
end

#spritesheet_coordinatesArray<Integer>

The SpriteStack initial coordinates

Returns:

  • (Array<Integer>)

    the coordinates



175
176
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 175

def spritesheet_coordinates
end

#text_coordinatesArray<Integer>

The base coordinates of the text

Returns:

  • (Array<Integer>)

    the coordinates



163
164
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 163

def text_coordinates
end

#widthInteger

Get the width of the box

Returns:

  • (Integer)

    the width of the box sprite



171
172
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 171

def width
end