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

Instance Method Summary collapse

Instance Attribute Details

#call_skill_processArray(Proc, PFM::Pokemon, PFM::Skill), ...

Return the skill process to call

Returns:



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_dataInteger

Return data of the Party Menu

Returns:



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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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_pokemonsArray<PFM::Pokemon>

Get all the selected Pokemon

Returns:



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