Module: BattleUI::SkillChoiceAbstraction
Overview
Abstraction helping to design skill choice a way that complies to what Visual expect to handle
Instance Attribute Summary collapse
-
#index ⇒ Integer
readonly
Get the index.
-
#mega_enabled ⇒ Boolean
Tell if the mega evolution is enabled.
-
#pokemon ⇒ PFM::PokemonBattler
readonly
The pokemon the player choosed a move.
-
#result ⇒ Battle::Move, :cancel
readonly
The selected move.
Instance Method Summary collapse
-
#encore_reset(pokemon, move)
Ensure the info are reset properly with current Encore’d Pokemon.
-
#reset(pokemon)
Reset the Skill choice.
-
#validated? ⇒ Boolean
If the player made a choice.
Instance Attribute Details
#index ⇒ Integer (readonly)
Get the index
488 489 490 |
# File 'docs/5_Battle_01_Scene.rb', line 488 def index @index end |
#mega_enabled ⇒ Boolean
Tell if the mega evolution is enabled
485 486 487 |
# File 'docs/5_Battle_01_Scene.rb', line 485 def mega_enabled @mega_enabled end |
#pokemon ⇒ PFM::PokemonBattler (readonly)
The pokemon the player choosed a move
482 483 484 |
# File 'docs/5_Battle_01_Scene.rb', line 482 def pokemon @pokemon end |
#result ⇒ Battle::Move, :cancel (readonly)
The selected move
479 480 481 |
# File 'docs/5_Battle_01_Scene.rb', line 479 def result @result end |
Instance Method Details
#encore_reset(pokemon, move)
Ensure the info are reset properly with current Encore’d Pokemon
496 497 |
# File 'docs/5_Battle_01_Scene.rb', line 496 def encore_reset(pokemon, move) end |
#reset(pokemon)
Reset the Skill choice
491 492 |
# File 'docs/5_Battle_01_Scene.rb', line 491 def reset(pokemon) end |
#validated? ⇒ Boolean
If the player made a choice
500 501 |
# File 'docs/5_Battle_01_Scene.rb', line 500 def validated? end |