Module: GamePlay::PartyMenuMixin
- Included in:
- Party_Menu
- Defined in:
- scripts/01450 Systems/00102 Party/00003 GamePlay/00001 PartyMenuMixin.rb
Overview
Module defining the IO of the PartyMenu
Instance Attribute Summary collapse
-
#call_skill_process ⇒ Array(Proc, PFM::Pokemon, PFM::Skill), ...
Return the skill process to call.
-
#return_data ⇒ Integer
Return data of the Party Menu.
Instance Method Summary collapse
-
#party_selected? ⇒ Boolean
Tell if a party was selected.
-
#pokemon_selected? ⇒ Boolean
Tell if a Pokemon was selected.
-
#selected_pokemons ⇒ Array<PFM::Pokemon>
Get all the selected Pokemon.
Instance Attribute Details
#call_skill_process ⇒ Array(Proc, PFM::Pokemon, PFM::Skill), ...
Return the skill process to call
9 10 11 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00001 PartyMenuMixin.rb', line 9 def call_skill_process @call_skill_process end |
#return_data ⇒ Integer
Return data of the Party Menu
6 7 8 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00001 PartyMenuMixin.rb', line 6 def return_data @return_data end |
Instance Method Details
#party_selected? ⇒ Boolean
Tell if a party was selected
19 20 21 22 23 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00001 PartyMenuMixin.rb', line 19 def party_selected? return false if @mode != :select return $game_temp.temp_team&.any? end |
#pokemon_selected? ⇒ Boolean
Tell if a Pokemon was selected
13 14 15 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00001 PartyMenuMixin.rb', line 13 def pokemon_selected? return return_data >= 0 end |
#selected_pokemons ⇒ Array<PFM::Pokemon>
Get all the selected Pokemon
27 28 29 30 31 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00001 PartyMenuMixin.rb', line 27 def selected_pokemons return [] unless party_selected? return $game_temp.temp_team end |