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

#index ⇒ Integer (readonly)

Get the index

Returns:

  • (Integer)


603
604
605
# File 'docs/5_Battle_01_Scene.rb', line 603

def index
  @index
end

#mega_enabled ⇒ Boolean

Tell if the mega evolution is enabled

Returns:

  • (Boolean)


600
601
602
# File 'docs/5_Battle_01_Scene.rb', line 600

def mega_enabled
  @mega_enabled
end

#pokemon ⇒ PFM::PokemonBattler (readonly)

The pokemon the player choosed a move

Returns:



597
598
599
# File 'docs/5_Battle_01_Scene.rb', line 597

def pokemon
  @pokemon
end

#result ⇒ Battle::Move, :cancel (readonly)

The selected move

Returns:



594
595
596
# File 'docs/5_Battle_01_Scene.rb', line 594

def result
  @result
end

Instance Method Details

#encore_reset(pokemon, move)

Ensure the info are reset properly with current Encore'd Pokemon

Parameters:



611
612
# File 'docs/5_Battle_01_Scene.rb', line 611

def encore_reset(pokemon, move)
end

#reset(pokemon)

Reset the Skill choice

Parameters:



606
607
# File 'docs/5_Battle_01_Scene.rb', line 606

def reset(pokemon)
end

#validated? ⇒ Boolean

If the player made a choice

Returns:

  • (Boolean)


615
616
# File 'docs/5_Battle_01_Scene.rb', line 615

def validated?
end