Class PCStorageSearch

All Implemented Interfaces:
Iterable<Pokemon>

public class PCStorageSearch extends PCStorage
Might switch to positions rather than pokémon. But it works for now.
  • Field Details

    • lastTextBoxQuery

      public static String lastTextBoxQuery
    • searchId

      public int searchId
  • Constructor Details

  • Method Details

    • query

      public void query()
    • query

      public void query(String textBoxQuery)
    • rearrangeBoxes

      public void rearrangeBoxes(@Nullable List<Pokemon> pokemon)
    • getLastBox

      public int getLastBox()
      Overrides:
      getLastBox in class PCStorage
    • canTransfer

      public boolean canTransfer(StoragePosition from, StoragePosition to)
      Overrides:
      canTransfer in class PokemonStorage
      Returns:
      Whether the first position is in this storage and it's full and the second position is in the party and it's empty, or vice-versa.