Module: BattleUI::SkillChoiceAbstraction

Includes:
GenericChoice
Included in:
SkillChoice
Defined in:
docs/5_Battle_01_Scene.rb

Overview

Abstraction helping to design skill choice a way that complies to what Visual expect to handle

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexInteger (readonly)

Get the index

Returns:

  • (Integer)


488
489
490
# File 'docs/5_Battle_01_Scene.rb', line 488

def index
  @index
end

#mega_enabledBoolean

Tell if the mega evolution is enabled

Returns:

  • (Boolean)


485
486
487
# File 'docs/5_Battle_01_Scene.rb', line 485

def mega_enabled
  @mega_enabled
end

#pokemonPFM::PokemonBattler (readonly)

The pokemon the player choosed a move

Returns:



482
483
484
# File 'docs/5_Battle_01_Scene.rb', line 482

def pokemon
  @pokemon
end

#resultBattle::Move, :cancel (readonly)

The selected move

Returns:



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

Parameters:



496
497
# File 'docs/5_Battle_01_Scene.rb', line 496

def encore_reset(pokemon, move)
end

#reset(pokemon)

Reset the Skill choice

Parameters:



491
492
# File 'docs/5_Battle_01_Scene.rb', line 491

def reset(pokemon)
end

#validated?Boolean

If the player made a choice

Returns:

  • (Boolean)


500
501
# File 'docs/5_Battle_01_Scene.rb', line 500

def validated?
end