Module: GamePlay::PokemonTradeStorageMixin

Included in:
PokemonTradeStorage
Defined in:
docs/4_Systems_200_Storage.rb

Overview

Mixin definin the Input/Output of the PokemonTradeStorage class

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#return_dataInteger? (readonly)

Get the selected Pokemon index (1~30) = current box, (31~36) = party

Returns:

  • (Integer, nil)


1140
1141
1142
# File 'docs/4_Systems_200_Storage.rb', line 1140

def return_data
  @return_data
end

Instance Method Details

#pokemon_selected?Boolean

Tell if a Pokemon was selected

Returns:

  • (Boolean)


1143
1144
# File 'docs/4_Systems_200_Storage.rb', line 1143

def pokemon_selected?
end

#pokemon_selected_in_box?Boolean

Tell if the selected Pokemon is from box

Returns:

  • (Boolean)


1151
1152
# File 'docs/4_Systems_200_Storage.rb', line 1151

def pokemon_selected_in_box?
end

#pokemon_selected_in_party?Boolean

Tell if the selected Pokemon is from party

Returns:

  • (Boolean)


1155
1156
# File 'docs/4_Systems_200_Storage.rb', line 1155

def pokemon_selected_in_party?
end

#selected_pokemonPFM::Pokemon?

Get the selected Pokemon

Returns:



1147
1148
# File 'docs/4_Systems_200_Storage.rb', line 1147

def selected_pokemon
end