Class: UI::Hall_of_Fame::Dead_Pokemon_Text

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

Overview

Class that define the Dead Pokemon text

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, x, y) ⇒ Dead_Pokemon_Text

Initialize the SpriteStack

Parameters:

  • viewport (Viewport)
  • x (Integer)
  • y (Integer)


245
246
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 245

def initialize(viewport, x, y)
end

Instance Method Details

#bmp_filenameString

The base filename of the window

Returns:



249
250
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 249

def bmp_filename
end

#text=(pkm)

Change the text according to the data sent

Parameters:

  • pkm (PFM::Pokemon)

    the dead Pokemon we want the name of



257
258
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 257

def text=(pkm)
end

#text_coordinateArray<Integer>

The base coordinates of the text

Returns:

  • (Array<Integer>)

    the coordinates



253
254
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 253

def text_coordinate
end