Class: BattleUI::SkillChoice

Inherits:
GenericChoice show all
Includes:
SkillChoiceAbstraction
Defined in:
docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb

Overview

Class that allow to choose the skill of the Pokemon

The object tells the player validated on #validated? and the result is stored inside #result

The object should be updated through #update otherwise no validation is possible

When result was taken, the scene should call #reset to undo the validated state

Defined Under Namespace

Classes: MoveButton, MoveDescription, MoveInfo, SpecialButton, SubChoice

Constant Summary collapse

BUTTON_COORDINATE =

Coordinate of each buttons

[[198, 124], [198, 153], [198, 182], [198, 211]]

Constants inherited from GenericChoice

GenericChoice::CURSOR_OFFSET_X, GenericChoice::CURSOR_OFFSET_Y

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes included from SkillChoiceAbstraction

#index, #mega_enabled, #pokemon, #result

Attributes inherited from GenericChoice

#animation_handler, #scene

Attributes inherited from UI::SpriteStack

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

Instance Method Summary collapse

Methods included from SkillChoiceAbstraction

#encore_reset, #reset, #validated?

Methods inherited from GenericChoice

#done?, #reset, #update

Methods included from GoingInOut

#animation_handler, #go_in, #go_out, #in?, #out?

Methods included from HideShow

#animation_handler, #hide, #show

Methods inherited from UI::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, scene) ⇒ SkillChoice

Create a new SkillChoice UI

Parameters:



1352
1353
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1352

def initialize(viewport, scene)
end