Class: UI::ContestSkillChoice::ContestMoveDescription

Inherits:
SpriteStack show all
Includes:
BattleUI::HideShow
Defined in:
docs/6_Contest_01_Scene.rb

Overview

Element showing the full description about the currently selected move

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

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

Instance Method Summary collapse

Methods included from BattleUI::HideShow

#hide, #show

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_animation, #update_position, #visible, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ ContestMoveDescription

Create a new MoveDescription

Parameters:



268
269
# File 'docs/6_Contest_01_Scene.rb', line 268

def initialize(viewport)
end

Instance Attribute Details

#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::Animation::TimedAnimation} (readonly)

Get the animation handler



259
260
261
# File 'docs/6_Contest_01_Scene.rb', line 259

def animation_handler
  @animation_handler
end

#appeal_hearts ⇒ Array<SpriteSheet> (readonly)

Appeal hearts sprites

Returns:



262
263
264
# File 'docs/6_Contest_01_Scene.rb', line 262

def appeal_hearts
  @appeal_hearts
end

#jam_hearts ⇒ Array<SpriteSheet> (readonly)

Jam hearts sprites

Returns:



265
266
267
# File 'docs/6_Contest_01_Scene.rb', line 265

def jam_hearts
  @jam_hearts
end

Instance Method Details

#done? ⇒ Boolean

Tell if the animation is done

Returns:

  • (Boolean)


275
276
# File 'docs/6_Contest_01_Scene.rb', line 275

def done?
end

#update

Update the sprite



271
272
# File 'docs/6_Contest_01_Scene.rb', line 271

def update
end

#visible=(visible)

Make sure sprite is visible only if the data is right

Parameters:

  • visible (Boolean)


279
280
# File 'docs/6_Contest_01_Scene.rb', line 279

def visible=(visible)
end