Class: BattleUI::SkillChoice
- Inherits:
-
GenericChoice
- Object
- UI::SpriteStack
- GenericChoice
- BattleUI::SkillChoice
- Includes:
- SkillChoiceAbstraction
- Defined in:
- docs/5_Battle_01_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
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport, scene) ⇒ SkillChoice
constructor
Create a new SkillChoice UI.
Methods included from SkillChoiceAbstraction
#encore_reset, #reset, #validated?
Methods inherited from GenericChoice
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
1381 1382 |
# File 'docs/5_Battle_01_Scene.rb', line 1381 def initialize(, scene) end |