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_data ⇒ Integer? (readonly)

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

Returns:

  • (Integer, nil)


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

def return_data
  @return_data
end

Instance Method Details

#pokemon_selected? ⇒ Boolean

Tell if a Pokemon was selected

Returns:

  • (Boolean)


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

def pokemon_selected?
end

#pokemon_selected_in_box? ⇒ Boolean

Tell if the selected Pokemon is from box

Returns:

  • (Boolean)


1162
1163
# File 'docs/4_Systems_200_Storage.rb', line 1162

def pokemon_selected_in_box?
end

#pokemon_selected_in_party? ⇒ Boolean

Tell if the selected Pokemon is from party

Returns:

  • (Boolean)


1166
1167
# File 'docs/4_Systems_200_Storage.rb', line 1166

def pokemon_selected_in_party?
end

#selected_pokemon ⇒ PFM::Pokemon?

Get the selected Pokemon

Returns:



1158
1159
# File 'docs/4_Systems_200_Storage.rb', line 1158

def selected_pokemon
end