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
-
#return_data ⇒ Integer?
readonly
Get the selected Pokemon index (1~30) = current box, (31~36) = party.
Instance Method Summary collapse
-
#pokemon_selected? ⇒ Boolean
Tell if a Pokemon was selected.
-
#pokemon_selected_in_box? ⇒ Boolean
Tell if the selected Pokemon is from box.
-
#pokemon_selected_in_party? ⇒ Boolean
Tell if the selected Pokemon is from party.
-
#selected_pokemon ⇒ PFM::Pokemon?
Get the selected Pokemon.
Instance Attribute Details
#return_data ⇒ Integer? (readonly)
Get the selected Pokemon index (1~30) = current box, (31~36) = party
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
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
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
1155 1156 |
# File 'docs/4_Systems_200_Storage.rb', line 1155 def pokemon_selected_in_party? end |
#selected_pokemon ⇒ PFM::Pokemon?
Get the selected Pokemon
1147 1148 |
# File 'docs/4_Systems_200_Storage.rb', line 1147 def selected_pokemon end |